Bug 1082830 - RFE: add config option for how many versions of each package to mash
Summary: RFE: add config option for how many versions of each package to mash
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: mash
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dennis Gilmore
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1084583
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-31 22:24 UTC by Kevin Fenzi
Modified: 2015-10-20 17:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-20 17:20:18 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch to let the "latest" config option be either an int or a boo (2.02 KB, patch)
2014-04-04 19:02 UTC, Ralph Bean
no flags Details | Diff

Description Kevin Fenzi 2014-03-31 22:24:58 UTC
Currently mash pulls the most recently tagged version of every package in the tag it's mashing. 

It would be nice if there was a config option to pull instead the most recent N packages in the tag (defaulting to 1). 

Right now there is an option for "latest". If it's true (default) it only gets the latest package in the tag. If it's false, it gets all packages in the tag. It would be nice to have a middle ground. 

Optionally, perhaps there could be a way to pull in non latest packages into the tag only if they are newer than some time limit. Ie, pull latest always, pull N more only if they were tagged in newer than N days ago.

This option would be handy for users who wish to downgrade to just the most recent previous version.

Comment 1 Ralph Bean 2014-04-04 19:02:53 UTC
Created attachment 882816 [details]
Patch to let the "latest" config option be either an int or a boo

This depends on a similar feature being introduced to koji itself.

Comment 2 Ralph Bean 2015-09-16 15:09:23 UTC
Rebased and re-submitted patch as a pull-request here:

https://pagure.io/mash/pull-request/2

Comment 3 Ralph Bean 2015-10-20 17:20:18 UTC
That pull request was merged today:  https://pagure.io/mash/pull-request/2


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