Bug 15251

Summary: Implement backports checkout in mgarepo
Product: Mageia Reporter: Rémi Verschelde <rverschelde>
Component: RPM PackagesAssignee: Nicolas Lécureuil <mageia>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Normal CC: mageia, sysadmin-bugs
Version: CauldronKeywords: PATCH
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: mgarepo CVE:
Status comment:
Attachments: Implement support for mgarepo co backports/4/pkgname if branch exists

Description Rémi Verschelde 2015-02-10 11:32:46 CET
We need to extend mgarepo to handle the backports branch as it does with the updates branch.

There are at least two things that mgarepo should be able to do:
- Checkout a backports branch using a simple syntax, i.e. mgarepo co backports/4/pkgname
- If the branch does not exist, create the actual backports branch for the given package, following this scheme:
  o Branch off the updates/4/pkgname branch to backports/4/pkgname
  o If pkgname is new, branch off cauldron/pkgname to backports/4/pkgname

For the first point, I've done a patch (arguably not the best implementation though) that mimics the behaviour of mgarepo co 4/pkgname and extends it to support backports.

I've tested it locally and it works fine.

Reproducible: 

Steps to Reproduce:
Comment 1 Rémi Verschelde 2015-02-10 11:38:14 CET
Created attachment 5878 [details]
Implement support for mgarepo co backports/4/pkgname if branch exists
Comment 2 Rémi Verschelde 2015-02-10 11:47:34 CET
CC'ing sysadmin team.

CC: (none) => sysadmin-bugs

Samuel Verschelde 2015-05-31 23:01:00 CEST

Keywords: (none) => PATCH
Severity: normal => enhancement

Comment 3 Nicolas Lécureuil 2015-11-28 14:51:25 CET
i just added this feature in mgarepo ( http://gitweb.mageia.org/software/build-system/mgarepo/commit/?id=4521eb9e1425919f6e6a87011098c2a3490295c4 ) 

the switch is -k ( or --backports )


mgarepo co packagename -k 5

Status: NEW => RESOLVED
CC: (none) => mageia
Resolution: (none) => FIXED

Rémi Verschelde 2015-11-28 14:53:33 CET

Summary: Implement backports handling in mgarepo => Implement backports checkout in mgarepo

Rémi Verschelde 2015-11-28 14:53:42 CET

Assignee: bugsquad => mageia