abuild: check that source package is not a version number only
github tarballs are normally only a version number. we need to force that those are renamed so we dont get source tarball name collisions.
This commit is contained in:
parent
553762ca30
commit
25a56f81a2
10
abuild.in
10
abuild.in
@ -179,6 +179,16 @@ default_sanitycheck() {
|
|||||||
esac
|
esac
|
||||||
list_has ${i##*/} $md5sums $sha256sums $sha512sums \
|
list_has ${i##*/} $md5sums $sha256sums $sha512sums \
|
||||||
|| die "${i##*/} is missing in checksums"
|
|| die "${i##*/} is missing in checksums"
|
||||||
|
|
||||||
|
# verify that our source does not have git tag version
|
||||||
|
# name as tarball (typicallly github)
|
||||||
|
if is_remote "$i" && [ "${i#*::}" = "$i" ]; then
|
||||||
|
case ${i##*/} in
|
||||||
|
v$pkgver.tar.*|$pkgver.tar.*)
|
||||||
|
die "source ${i##*/} needs to be renamed to avoid possible collisions"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user