Bug 15251 - Implement backports checkout in mgarepo
Summary: Implement backports checkout in mgarepo
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Nicolas Lécureuil
QA Contact:
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-02-10 11:32 CET by Rémi Verschelde
Modified: 2015-11-28 14:53 CET (History)
2 users (show)

See Also:
Source RPM: mgarepo
CVE:
Status comment:


Attachments
Implement support for mgarepo co backports/4/pkgname if branch exists (5.61 KB, patch)
2015-02-10 11:38 CET, Rémi Verschelde
Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.