Codebase list rust-libslirp / 551c3a8
Fix logic of build.sh for REUSE_EXISTING_ORIG_TARBALL for synstructure Ximin Luo 4 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
4242 }
4343
4444 if shouldbuild ${DEBSRC}_${DEBVER}.dsc "$PKGNAME/debian/changelog" ]; then
45 ( cd "$PKGNAME" && dpkg-buildpackage -d -S --no-sign )
4645 if [ "$REUSE_EXISTING_ORIG_TARBALL" = 1 ]; then
4746 UPSVER="${DEBVER%-*}"
4847 mv "${DEBSRC}_${UPSVER}.orig.tar.gz" "${DEBSRC}_${UPSVER}.orig.tar.gz.new"
49 apt-get -t unstable source "${DEBSRC}" # "=${DEBVER}"
48 apt-get -t unstable source --download-only "${DEBSRC}" # "=${DEBVER}"
5049 # check that old tarball contains same contents as new tarball
5150 if ! diff -ru \
5251 --label "${DEBSRC}_${UPSVER}.orig.tar.gz.new" \
5655 read -p "contents differ, continue with old tarball or abort? [y/N] " x
5756 if [ "$x" != "y" ]; then exit 1; fi
5857 fi
59 ( cd "$PKGNAME" && dpkg-buildpackage -d -S --no-sign )
58 # extract old tarball into new directory, to avoid "modified files" problems with dpkg-source later
59 ( cd "$PKGNAME" && dpkg-source --after-build . && tar --strip-components=1 -xf "../${DEBSRC}_${UPSVER}.orig.tar.gz" )
6060 fi
61 ( cd "$PKGNAME" && dpkg-buildpackage -d -S --no-sign )
6162 # sign if not UNRELEASED
6263 if echo "$DEBDIST" | grep -qv UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; then
6364 debsign ${DEBSRC}_${DEBVER}_source.changes