aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2014-07-18 04:19:10 +0200
committerAndré Erdmann <dywi@mailerd.de>2014-07-18 04:19:25 +0200
commita56814f1d04894840b08621f394fcb5ba94b126e (patch)
tree1956f7b388d8910f1ddf77b34265d4816c78772b
parentcreate_addition_control_package_rule() (diff)
downloadR_overlay-a56814f1d04894840b08621f394fcb5ba94b126e.tar.gz
R_overlay-a56814f1d04894840b08621f394fcb5ba94b126e.tar.bz2
R_overlay-a56814f1d04894840b08621f394fcb5ba94b126e.zip
packagerules/rules: fix
fixes a66935abdbccc21e52d51a1ccc7b5849afe4b3c6
-rw-r--r--roverlay/packagerules/rules.py2
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