summaryrefslogtreecommitdiff
path: root/gbp/deb
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-04-13 12:56:10 +0200
committerGuido Günther <agx@sigxcpu.org>2013-04-13 14:26:24 +0200
commit6eb2ddcdd4909621e89d5b0c1360eb68bc73f901 (patch)
tree8060f2aa594e1def7b30d82b4c273d355e0d8764 /gbp/deb
parentb05d4097b6ab8dcc98343dcd33c0d50e63b88118 (diff)
downloadgit-buildpackage-6eb2ddcdd4909621e89d5b0c1360eb68bc73f901.tar.gz
git-buildpackage-6eb2ddcdd4909621e89d5b0c1360eb68bc73f901.tar.bz2
git-buildpackage-6eb2ddcdd4909621e89d5b0c1360eb68bc73f901.zip
Use _git_inout for git.show
so we don't spew the error message on stdout for nonexistent objects
Diffstat (limited to 'gbp/deb')
-rw-r--r--gbp/deb/__init__.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/gbp/deb/__init__.py b/gbp/deb/__init__.py
index 6dd10a74..0020f0cb 100644
--- a/gbp/deb/__init__.py
+++ b/gbp/deb/__init__.py
@@ -17,13 +17,11 @@
"""provides some debian source package related helpers"""
import os
-import re
import subprocess
import gbp.command_wrappers as gbpc
from gbp.errors import GbpError
from gbp.git import GitRepositoryError
-from gbp.pkg import UpstreamSource
# Make sure these are available with 'import gbp.deb'
from gbp.deb.changelog import ChangeLog, NoChangeLogError
@@ -78,8 +76,7 @@ def parse_changelog_repo(repo, branch, filename):
except GitRepositoryError:
raise NoChangeLogError("Changelog %s not found in branch %s" % (filename, branch))
- lines = repo.show(sha)
- return ChangeLog('\n'.join(lines))
+ return ChangeLog(repo.show(sha))
def orig_file(cp, compression):
"""