From: Zac Medico Date: Wed, 6 Dec 2006 20:39:51 +0000 (-0000) Subject: Only call calc_changelog if there is an installed version in the same slot. X-Git-Tag: v2.1.2~392 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=307d72fe47da4f0dd027638f200fcfd189c71998;p=portage.git Only call calc_changelog if there is an installed version in the same slot. svn path=/main/trunk/; revision=5185 --- 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