summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-09-28 23:48:02 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-09-28 23:48:03 +0100
commitdc217db9c437a31fed60485fc4fc2c18aa0b7d69 (patch)
tree63223260a7ac06affaba16764067c559aa7e52ca /dgit
parent996489fe48ebd57d4ad5f4a8bff7e2a871dc0a87 (diff)
Fix two calls to chdir without proper error checking.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit4
1 files changed, 2 insertions, 2 deletions
diff --git a/dgit b/dgit
index d8ab871..cdf2e93 100755
--- a/dgit
+++ b/dgit
@@ -3777,12 +3777,12 @@ sub quilt_fixup_singlepatch ($$$) {
rmtree("debian/patches");
runcmd @dpkgsource, qw(-b .);
- chdir "..";
+ changedir "..";
runcmd @dpkgsource, qw(-x), (srcfn $version, ".dsc");
rename srcfn("$upstreamversion", "/debian/patches"),
"work/debian/patches";
- chdir "work";
+ changedir "work";
commit_quilty_patch();
}