metafiles: cd into repo if this isn't done already

This commit is contained in:
Starbeamrainbowlabs 2020-01-14 17:35:17 +00:00
parent cf4ddd4f99
commit 8016833a5b
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -142,6 +142,9 @@ task_update() {
}
task_metafiles() {
if [[ "$(basename "${PWD}")" != "$(basename "${dir_repo}")" ]]; then
cd "${dir_repo}";
fi
task_begin "Building packages file";
apt-ftparchive packages . >Packages;
execute bzip2 -kf Packages;