diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-12-06 20:39:51 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-12-06 20:39:51 +0000 |
commit | 307d72fe47da4f0dd027638f200fcfd189c71998 (patch) | |
tree | e631fe803a4dd5e9159f7d396238f94460bcc83f | |
parent | 3d9c1f684f29823c08f096831ea923ced9551eb5 (diff) | |
download | portage-307d72fe47da4f0dd027638f200fcfd189c71998.tar.gz portage-307d72fe47da4f0dd027638f200fcfd189c71998.tar.bz2 portage-307d72fe47da4f0dd027638f200fcfd189c71998.zip |
Only call calc_changelog if there is an installed version in the same slot.
svn path=/main/trunk/; revision=5185
-rwxr-xr-x | bin/emerge | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/emerge b/bin/emerge index 119b5d510..a4e29e9c6 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1931,9 +1931,11 @@ class depgraph: if "--changelog" in self.myopts: slot_atom = "%s:%s" % (portage.dep_getkey(pkg_key), mydbapi.aux_get(pkg_key, ["SLOT"])[0]) - changelogs.extend(self.calc_changelog( - portdb.findname(pkg_key), - vardb.match(slot_atom)[0], pkg_key)) + inst_matches = vardb.match(slot_atom) + if inst_matches: + changelogs.extend(self.calc_changelog( + portdb.findname(pkg_key), + inst_matches[0], pkg_key)) else: addl=" "+green("N")+" "+fetch+" " counters.new += 1 |