diff options
author | Guido Günther <agx@sigxcpu.org> | 2014-08-26 11:08:27 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-08-26 11:08:27 +0200 |
commit | 6edd8363eab02832f8bb58f3405609503b6458af (patch) | |
tree | 7ec27204469d69b8d8cd496d1acb615faed17a1d /bin/git-pbuilder | |
parent | f6e3104958708a5fda10a154eec8e7e22c9a5e0c (diff) |
Don't delete *_source.changes on source only builds
Closes: #758726
Diffstat (limited to 'bin/git-pbuilder')
-rw-r--r-- | bin/git-pbuilder | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/git-pbuilder b/bin/git-pbuilder index 4024d12..37ffe67 100644 --- a/bin/git-pbuilder +++ b/bin/git-pbuilder @@ -265,6 +265,7 @@ fi # them from the shell since they'll undergo another round of shell expansion # when the pbuilder runs debbuild. for arg in "$@" ; do + [ "$arg" != "-S" ] || source_only=true DEBBUILDOPTS+=" $(shell_quote "$arg")" done @@ -278,7 +279,7 @@ else --debbuildopts "$DEBBUILDOPTS" -- "${OPTIONS[@]}" fi status="$?" -if [ -n "`ls ../*_source.changes`" ] ; then +if [ -n "`ls ../*_source.changes`" -a $source_only != 'true' ] ; then rm ../*_source.changes fi exit "$status" |