diff options
author | Till Maas <opensource@till.name> | 2013-12-16 19:51:13 +0100 |
---|---|---|
committer | Till Maas <opensource@till.name> | 2013-12-16 20:12:53 +0100 |
commit | 9b2b2b925ad0ee43970662e9ca8136dfaa0a851c (patch) | |
tree | ed66feb04fbf4e706d3283dde6b5ace1d701cc98 | |
parent | b41572b6fdc521274acf48d035e5705f771a05c8 (diff) | |
download | cnucnu-9b2b2b925ad0ee43970662e9ca8136dfaa0a851c.tar.gz cnucnu-9b2b2b925ad0ee43970662e9ca8136dfaa0a851c.tar.xz cnucnu-9b2b2b925ad0ee43970662e9ca8136dfaa0a851c.zip |
Add DRUPAL-DEFAULT regex alias
-rwxr-xr-x | cnucnu/package_list.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cnucnu/package_list.py b/cnucnu/package_list.py index 074e8ae..09624a8 100755 --- a/cnucnu/package_list.py +++ b/cnucnu/package_list.py @@ -157,6 +157,10 @@ class Package(object): if not name_override and name.startswith("perl-"): name = name[len("perl-"):] regex = "DEFAULT" + elif regex == "DRUPAL-DEFAULT": + branch = name[6] + regex = \ + "(?s)Recommended releases.*?>{0}.x-([^<]*)".format(branch) elif regex == "PEAR-DEFAULT": # strip "php-pear-" prefix only if name was not overridden if not name_override and name.startswith("php-pear-"): |