Name the IMPORT file after the setup name.
This is important when running under autopkgtest, where all the setups
share the tmp directory with each other and with the main test. The
setups need distinct IMPORTS.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit (2.5~) unstable; urgency=medium
* dgit-maint-merge(7): New tutorial manpage from Sean Whitton.
dgit (2.5~) unstable; urgency=medium
* dgit-maint-merge(7): New tutorial manpage from Sean Whitton.
local savedirs=$2
local importeval=$3
local savedirs=$2
local importeval=$3
+ local import=IMPORT.${0##*/}
+ exec 4>$tmp/$import.new
local vn
for vn in $savevars; do
local vn
for vn in $savevars; do
' $vn "$(eval "printf '%s\n' \"\$$vn\"")"
done
' $vn "$(eval "printf '%s\n' \"\$$vn\"")"
done
- (set -e; cd $tmp; tar cf IMPORT.tar $savedirs)
+ (set -e; cd $tmp; tar cf $import.tar $savedirs)
printf >&4 "\n%s\n" "$importeval"
printf >&4 "\n%s\n" "$importeval"
- mv -f $tmp/IMPORT.new $tmp/IMPORT
+ mv -f $tmp/$import.new $tmp/$import
- local simport="$setupsrc/IMPORT"
+ local simport="$setupsrc/IMPORT.$setupname"
if ! [ -e "$simport" ]; then
with-lock-ex -w "$lock" \
if ! [ -e "$simport" ]; then
with-lock-ex -w "$lock" \