mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-07 01:01:15 +00:00
Add new --series option
Replace %(SERIES) macro in config files with given value.
This commit is contained in:
parent
b1134d9712
commit
7380e2eb92
@ -453,6 +453,8 @@ class Britney(object):
|
|||||||
help="just print a summary of uninstallable packages")
|
help="just print a summary of uninstallable packages")
|
||||||
parser.add_option("", "--components", action="store", dest="components",
|
parser.add_option("", "--components", action="store", dest="components",
|
||||||
help="Sources/Packages are laid out by components listed (, sep)")
|
help="Sources/Packages are laid out by components listed (, sep)")
|
||||||
|
parser.add_option("", "--series", action="store", dest="series", default=None,
|
||||||
|
help="set distribution series name")
|
||||||
(self.options, self.args) = parser.parse_args()
|
(self.options, self.args) = parser.parse_args()
|
||||||
|
|
||||||
# integrity checks
|
# integrity checks
|
||||||
@ -475,6 +477,8 @@ class Britney(object):
|
|||||||
k, v = line.split('=', 1)
|
k, v = line.split('=', 1)
|
||||||
k = k.strip()
|
k = k.strip()
|
||||||
v = v.strip()
|
v = v.strip()
|
||||||
|
if self.options.series is not None:
|
||||||
|
v = v.replace("%(SERIES)", self.options.series)
|
||||||
if k.startswith("MINDAYS_"):
|
if k.startswith("MINDAYS_"):
|
||||||
MINDAYS[k.split("_")[1].lower()] = int(v)
|
MINDAYS[k.split("_")[1].lower()] = int(v)
|
||||||
elif k.startswith("HINTS_"):
|
elif k.startswith("HINTS_"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user