summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-09-16 09:49:42 +0200
committerGuido Günther <agx@sigxcpu.org>2010-09-16 09:49:42 +0200
commit02b1a0312eb6f79a867c59ffe593501770ea6991 (patch)
treeaacd67bb1b3b5e9eae999b20d091a02cba170bc2
parent70c5b22006fcf56933e66480a61bdf4d00a2475a (diff)
downloadgit-buildpackage-02b1a0312eb6f79a867c59ffe593501770ea6991.tar.gz
git-buildpackage-02b1a0312eb6f79a867c59ffe593501770ea6991.tar.bz2
git-buildpackage-02b1a0312eb6f79a867c59ffe593501770ea6991.zip
Don't fail on missing debian/rules
LP: #638371
-rwxr-xr-xgit-import-dsc3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-import-dsc b/git-import-dsc
index 1a5d10b9..f51dc1e1 100755
--- a/git-import-dsc
+++ b/git-import-dsc
@@ -94,7 +94,8 @@ def apply_debian_patch(repo, unpack_dir, src, options, parents):
if src.deb_tgz and not apply_deb_tgz(src.deb_tgz, unpack_dir):
raise GbpError
- os.chmod('debian/rules', 0755)
+ if os.path.exists('debian/rules'):
+ os.chmod('debian/rules', 0755)
os.chdir(repo.path)
dch = parse_changelog(os.path.join(unpack_dir, 'debian/changelog'))