mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-22 23:12:45 +00:00
abuild: avoid add depends to itself
packages should never depend on themselves which does not make sense. This may happen if main package depends on a subpackage, then the subpackages will inherit the global depends and the subpackage ends up depend on itself. Fix abuild to avoid this.
This commit is contained in:
parent
2f8bbc819e
commit
13aec9a141
@ -991,7 +991,9 @@ prepare_metafiles() {
|
|||||||
echo "replaces = $i" >> "$pkginfo"
|
echo "replaces = $i" >> "$pkginfo"
|
||||||
done
|
done
|
||||||
for i in $deps; do
|
for i in $deps; do
|
||||||
echo "depend = $i" >> "$pkginfo"
|
if [ "$i" != "$name" ]; then
|
||||||
|
echo "depend = $i" >> "$pkginfo"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
for i in $provides; do
|
for i in $provides; do
|
||||||
echo "provides = $i" >> "$pkginfo"
|
echo "provides = $i" >> "$pkginfo"
|
||||||
|
Loading…
Reference in New Issue
Block a user