projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2fb971
)
parse_updates: filter invalid for bug #388187
author
Zac Medico
<zmedico@gentoo.org>
Sun, 23 Oct 2011 18:31:05 +0000
(11:31 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 23 Oct 2011 18:31:05 +0000
(11:31 -0700)
pym/portage/update.py
patch
|
blob
|
history
diff --git
a/pym/portage/update.py
b/pym/portage/update.py
index 1a2c86cc25fe1e89f6781512b50e3b7920c02cd3..6d13dfc859fd5083476fd708646606235c65dfb0 100644
(file)
--- a/
pym/portage/update.py
+++ b/
pym/portage/update.py
@@
-156,6
+156,7
@@
def parse_updates(mycontent):
if len(mysplit) != 3:
errors.append(_("ERROR: Update command invalid '%s'") % myline)
continue
+ valid = True
for i in (1, 2):
try:
atom = Atom(mysplit[i])
@@
-169,7
+170,11
@@
def parse_updates(mycontent):
else:
errors.append(
_("ERROR: Malformed update entry '%s'") % myline)
+ valid = False
break
+ if not valid:
+ continue
+
if mysplit[0] == "slotmove":
if len(mysplit)!=4:
errors.append(_("ERROR: Update command invalid '%s'") % myline)