diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-10-23 11:31:05 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-10-23 11:31:05 -0700 |
commit | a3005f69ba99d0e882da44716e3743737e6e4987 (patch) | |
tree | d819ac054952c17b36a15ed778e500b0b9066ffd | |
parent | e2fb971105c636f2abc7fbcc3756559ea0727ce3 (diff) | |
download | portage-a3005f69ba99d0e882da44716e3743737e6e4987.tar.gz portage-a3005f69ba99d0e882da44716e3743737e6e4987.tar.bz2 portage-a3005f69ba99d0e882da44716e3743737e6e4987.zip |
parse_updates: filter invalid for bug #388187
-rw-r--r-- | pym/portage/update.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage/update.py b/pym/portage/update.py index 1a2c86cc2..6d13dfc85 100644 --- 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) |