diff options
author | André Erdmann <dywi@mailerd.de> | 2014-07-18 04:19:10 +0200 |
---|---|---|
committer | André Erdmann <dywi@mailerd.de> | 2014-07-18 04:19:25 +0200 |
commit | a56814f1d04894840b08621f394fcb5ba94b126e (patch) | |
tree | 1956f7b388d8910f1ddf77b34265d4816c78772b /roverlay | |
parent | create_addition_control_package_rule() (diff) | |
download | R_overlay-a56814f1d04894840b08621f394fcb5ba94b126e.tar.gz R_overlay-a56814f1d04894840b08621f394fcb5ba94b126e.tar.bz2 R_overlay-a56814f1d04894840b08621f394fcb5ba94b126e.zip |
packagerules/rules: fix
fixes a66935abdbccc21e52d51a1ccc7b5849afe4b3c6
Diffstat (limited to 'roverlay')
-rw-r--r-- | roverlay/packagerules/rules.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roverlay/packagerules/rules.py b/roverlay/packagerules/rules.py index 9e828d1..f6a83c2 100644 --- a/roverlay/packagerules/rules.py +++ b/roverlay/packagerules/rules.py @@ -61,7 +61,7 @@ class PackageRules ( roverlay.packagerules.abstract.rules.NestedPackageRule ): Defaults to True. """ if self._rules: - rule.priority = 1 + max ( self._rules, key=(lambda r: r.priority) ) + rule.priority = 1 + max ( k.priority for k in self._rules ) else: rule.priority = 0 |