Browse Source

Reset current directory in identify_build_type

identify_build_type would cd to /tmp/something for
non-master-architecture builds, but failed to reset the directory for
cowbuilder.
merge-requests/109/head
Christoph Berg 10 years ago
parent
commit
8a8c98cd60
  1. 2
      scripts/build-and-provide-package

2
scripts/build-and-provide-package

@ -241,6 +241,7 @@ identify_build_type() {
fi
local TMPDIR=$(mktemp -d)
local old_dir=$(pwd)
cd "$TMPDIR"
for file in ${BASE_PATH}/${SOURCE_PACKAGE}_*.tar.* ; do
if tar atf "$file" 2>/dev/null | grep -q debian/control ; then
@ -263,6 +264,7 @@ identify_build_type() {
fi
fi
done
cd "$old_dir"
rm -rf "${TMPDIR}"
}

Loading…
Cancel
Save