Skip to content
Snippets Groups Projects
Commit 8c9b182d authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

scripts: ipkg-remove: handle existing .ipk files without SourceName field


Package archives built before commit e6bcf1e4
("build: add ABI_VERSION to binary package names") lack the SourceName
control file field which caused ipkg-remove to skip such archives.

Add fallback code that matches the files by their basename followed by
an underscore, similar to how the old cleanup code worked.

Fixes: #2067
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 3fe555c7
Branches
Tags
No related merge requests found
...@@ -10,6 +10,11 @@ for pkg in "$@"; do ...@@ -10,6 +10,11 @@ for pkg in "$@"; do
break break
fi fi
done done
case "$pkg" in
*/"${sourcename}_"*.ipk)
rm -vf "$pkg"
;;
esac
done done
exit 0 exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment