summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-05-31 01:36:22 +0000
committerMarius Mauch <genone@gentoo.org>2007-05-31 01:36:22 +0000
commitad5abe215bcf7ee73faa6e27c3f8f99141dc4622 (patch)
tree913beb7d6f0f93cbbc2ceceb9f01d6d183fd0a24
parent28b09fcc5b0b45fbea9725e68e87b58d49cbe197 (diff)
downloadportage-ad5abe215bcf7ee73faa6e27c3f8f99141dc4622.tar.gz
portage-ad5abe215bcf7ee73faa6e27c3f8f99141dc4622.tar.bz2
portage-ad5abe215bcf7ee73faa6e27c3f8f99141dc4622.zip
Only check ChangeLog if we're dealing with an ebuild (bug #170604)
svn path=/main/trunk/; revision=6685
-rw-r--r--pym/emerge/__init__.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index 592dda9cc..5189c6e2d 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -2809,10 +2809,14 @@ class depgraph:
sys.stderr.write("".join(msg))
def calc_changelog(self,ebuildpath,current,next):
+ if ebuildpath == None or not os.path.exists(ebuildpath):
+ return []
current = '-'.join(portage.catpkgsplit(current)[1:])
- if current.endswith('-r0'): current = current[:-3]
+ if current.endswith('-r0'):
+ current = current[:-3]
next = '-'.join(portage.catpkgsplit(next)[1:])
- if next.endswith('-r0'): next = next[:-3]
+ if next.endswith('-r0'):
+ next = next[:-3]
changelogpath = os.path.join(os.path.split(ebuildpath)[0],'ChangeLog')
try:
changelog = open(changelogpath).read()