mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-11 17:29:52 +00:00
abuild: restore working dir after updating index
This fixes issue with `abuild cleanpkg all`, which would fail to set SOURCE_DATE_EPOC for reproducible builds.
This commit is contained in:
parent
614fbc507b
commit
32785f6360
@ -1727,6 +1727,7 @@ update_abuildrepo_index() {
|
|||||||
DESCRIPTION="$repo $(cd $startdir && $git describe 2>/dev/null || true)"
|
DESCRIPTION="$repo $(cd $startdir && $git describe 2>/dev/null || true)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local oldpwd="$PWD"
|
||||||
for i in $allarch; do
|
for i in $allarch; do
|
||||||
cd "$REPODEST/$repo/$i"
|
cd "$REPODEST/$repo/$i"
|
||||||
local index=$i/APKINDEX.tar.gz
|
local index=$i/APKINDEX.tar.gz
|
||||||
@ -1745,6 +1746,7 @@ update_abuildrepo_index() {
|
|||||||
mv APKINDEX.tar.gz.$$ APKINDEX.tar.gz \
|
mv APKINDEX.tar.gz.$$ APKINDEX.tar.gz \
|
||||||
) || (rm -f APKINDEX.tar.gz.$$ ; die "Failed to create index")
|
) || (rm -f APKINDEX.tar.gz.$$ ; die "Failed to create index")
|
||||||
done
|
done
|
||||||
|
cd "$oldpwd"
|
||||||
}
|
}
|
||||||
|
|
||||||
# predefined function check
|
# predefined function check
|
||||||
|
Loading…
Reference in New Issue
Block a user