summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/package/ebuild/getmaskingreason.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/pym/portage/package/ebuild/getmaskingreason.py b/pym/portage/package/ebuild/getmaskingreason.py
index fa3849378..83757b798 100644
--- a/pym/portage/package/ebuild/getmaskingreason.py
+++ b/pym/portage/package/ebuild/getmaskingreason.py
@@ -57,16 +57,12 @@ def getmaskingreason(mycpv, metadata=None, settings=None, portdb=None, return_lo
pmask_filename = os.path.join(pmask[0], "package.mask")
for i in range(len(pmask[1])):
l = pmask[1][i].strip()
- negated_atom = False
try:
l_atom = Atom(l, allow_repo=True,
allow_wildcard=True).without_repo
except InvalidAtom:
l_atom = None
- if l[:1] == '-':
- negated_atom = True
-
- if negated_atom or not l:
+ if l == "":
comment = ""
comment_valid = -1
elif l[0] == "#":