diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2021-01-02 20:21:39 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2021-01-02 20:21:39 +0100 |
commit | 920940caec33f1b2cf5b41f470541e76215ba506 (patch) | |
tree | 5b00d39def45e3f9b6e9a40700657bd28f663827 | |
parent | 98bb552ab4324513421b8816d7d9326c168c7c9d (diff) | |
download | blogc-920940caec33f1b2cf5b41f470541e76215ba506.tar.gz blogc-920940caec33f1b2cf5b41f470541e76215ba506.tar.bz2 blogc-920940caec33f1b2cf5b41f470541e76215ba506.zip |
build: debian: do not download pbuilder chroot if not building debs
-rwxr-xr-x | build-aux/build-debian.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/build-aux/build-debian.sh b/build-aux/build-debian.sh index fc0c30b..505c9cd 100755 --- a/build-aux/build-debian.sh +++ b/build-aux/build-debian.sh @@ -60,17 +60,12 @@ create_reprepro_conf() { echo } -download_pbuilder_chroot - ${MAKE_CMD:-make} dist-xz MY_P="${PN}_${PV}" mv ${P}.tar.xz "${BUILDDIR}/${MY_P}.orig.tar.xz" -RES="${BUILDDIR}/deb/${DIST}" -mkdir -p "${RES}" - rm -rf "${BUILDDIR}/${P}" tar -xf "${BUILDDIR}/${MY_P}.orig.tar.xz" -C "${BUILDDIR}" cp -r "${SRCDIR}/debian" "${BUILDDIR}/${P}/" @@ -86,6 +81,11 @@ then exit 0 fi +download_pbuilder_chroot + +RES="${BUILDDIR}/deb/${DIST}" +mkdir -p "${RES}" + pdebuild \ --pbuilder cowbuilder \ --buildresult "${RES}" \ |