diff options
Diffstat (limited to 'portato/backend/flags.py')
-rw-r--r-- | portato/backend/flags.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/portato/backend/flags.py b/portato/backend/flags.py index 61d27aa..163a4f7 100644 --- a/portato/backend/flags.py +++ b/portato/backend/flags.py @@ -160,9 +160,8 @@ def generate_path (cpv, exp): @returns: rendered path @rtype string""" - cat, pkg, ver, rev = system.split_cpv(cpv) - if exp.find("$(") != -1: + cat, pkg, ver, rev = system.split_cpv(cpv) exp = exp.replace("$(cat)",cat).\ replace("$(pkg)",pkg).\ replace("$(cat-1)",cat.split("-")[0]).\ |