Ensure sources are always cleaned the same

Otherwise, in --repo mode, sources are not cleaned identically to how
they are in non --repo mode
This commit is contained in:
fosslinux 2024-01-24 14:35:55 +11:00
parent b1e3da4e46
commit 76217c6b0d
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,5 @@
# SPDX-FileCopyrightText: 2023 Eduardo Sánchez Muñoz <eduardosm-dev@e64.io>
# SPDX-FileCopyrightText: 2024 fosslinux <fosslinux@aussies.space>
#
# SPDX-License-Identifier: GPL-3.0-or-later
@ -37,6 +38,11 @@ for source in "${DISTFILES}/"*; do
rm "${source}"
done
if [ -e "/external/repo-preseeded/linux-4.9.10_0.tar.bz2" ]; then
# This is done in src_extract out of necessity usually -- I can't think of a better solution :(
rm -f "${DISTFILES}/linux-4.9.10.tar.gz"
fi
unset get_source_filename
unset pkgs pkg line
unset keep_sources keep_source

View File

@ -7,7 +7,7 @@
src_unpack() {
mkdir "${pkg}"
mv "${DISTFILES}/deblob-4.9" "${pkg}/"
cp "${DISTFILES}/deblob-4.9" "${pkg}/"
default || true # Predictable link errors - not a problem
rm "${DISTFILES}/${pkg}.tar.gz"
}