diff options
author | Stanislav Ochotnicky <sochotnicky@gmail.com> | 2009-07-27 23:16:53 +0200 |
---|---|---|
committer | Stanislav Ochotnicky <sochotnicky@gmail.com> | 2009-07-27 23:16:53 +0200 |
commit | f43b81f9f4ed5fb9316aac905d261c80c2f59b3e (patch) | |
tree | c3e54754bef8597f1662cefe660f83747283b669 /src | |
parent | Add error handling when package_infos is missing (diff) | |
download | collagen-f43b81f9f4ed5fb9316aac905d261c80c2f59b3e.tar.gz collagen-f43b81f9f4ed5fb9316aac905d261c80c2f59b3e.tar.bz2 collagen-f43b81f9f4ed5fb9316aac905d261c80c2f59b3e.zip |
Added checking for present use flags before remove
fixing bug #17
Diffstat (limited to 'src')
-rw-r--r-- | src/tinderbox/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tinderbox/__init__.py b/src/tinderbox/__init__.py index c9868ba..62aebbb 100644 --- a/src/tinderbox/__init__.py +++ b/src/tinderbox/__init__.py @@ -198,7 +198,8 @@ class Tinderbox(object): if dep[0]: for useflag in dep[0]: if useflag.startswith('-'): - real_use_enabled.remove(useflag[1:]) + if 0 is not l.count(useflag[1:]): + real_use_enabled.remove(useflag[1:]) elif 0 == real_use_enabled.count(useflag): real_use_enabled.append(useflag) |