]> git.proxmox.com Git - debcargo-conf.git/commitdiff
Remove old tarball as well when building
authorXimin Luo <infinity0@debian.org>
Sat, 9 Jun 2018 08:48:36 +0000 (01:48 -0700)
committerXimin Luo <infinity0@debian.org>
Sat, 9 Jun 2018 08:48:36 +0000 (01:48 -0700)
update.sh

index e0fe389980c36c8a0dab2b9301c4ea32d72a0868..28c5629272de00d7d7c6a210d80537482d5ed08b 100755 (executable)
--- a/update.sh
+++ b/update.sh
@@ -11,7 +11,7 @@ if [ ! -f "$PKGDIR/debian/copyright" ]; then
        echo "FIXME fill me in using ./copyright.debcargo.hint as a guide" > "$PKGDIR/debian/copyright"
 fi
 
-rm -rf "$BUILDDIR"
+rm -rf "$BUILDDIR" "$(dirname "$BUILDDIR")/rust-$PKG-$VER_$VER"*.orig.tar.*
 $DEBCARGO package --config "$PKGCFG" --directory "$BUILDDIR" "$PKG" "$VER"
 
 if ! git diff --quiet -- "$PKGDIR_REL"; then