diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-07-20 19:18:50 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-07-20 19:18:50 +0200 |
commit | 8b71eed2f8ef0714aba080ded2fcb96630b77d69 (patch) | |
tree | 6b258e68793c0df2ce27732290e4c098a749f80f /portato/backend | |
parent | 93948cd0f43cd806bd1d92dd18465fe051cfbcc0 (diff) | |
download | portato-8b71eed2f8ef0714aba080ded2fcb96630b77d69.tar.gz portato-8b71eed2f8ef0714aba080ded2fcb96630b77d69.tar.bz2 portato-8b71eed2f8ef0714aba080ded2fcb96630b77d69.zip |
Added "$(version)" for the config file naming.
Diffstat (limited to '')
-rw-r--r-- | portato/backend/flags.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/portato/backend/flags.py b/portato/backend/flags.py index fc99651..b151665 100644 --- a/portato/backend/flags.py +++ b/portato/backend/flags.py @@ -151,6 +151,7 @@ def generate_path (cpv, exp): - $(cat-1): first part of the category (e.g. "app") - $(cat-2): second part of the category - $(pkg) : name of the package + - $(version) : version of the package @param cpv: the cpv of the current package @type cpv: string (cat/pkg-ver) @@ -161,10 +162,13 @@ def generate_path (cpv, exp): if exp.find("$(") != -1: cat, pkg, ver, rev = system.split_cpv(cpv) + if rev != "r0": + ver = "%s-%s" % (ver, rev) exp = exp.replace("$(cat)",cat).\ replace("$(pkg)",pkg).\ replace("$(cat-1)",cat.split("-")[0]).\ - replace("$(cat-2)",cat.split("-")[1]) + replace("$(cat-2)",cat.split("-")[1]).\ + replace("$(version)",ver) return exp ### USE FLAG PART ### |