Commit 13aec9a1 authored by Natanael Copa's avatar Natanael Copa
Browse files

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.
parent 2f8bbc81
......@@ -991,7 +991,9 @@ prepare_metafiles() {
echo "replaces = $i" >> "$pkginfo"
for i in $deps; do
echo "depend = $i" >> "$pkginfo"
if [ "$i" != "$name" ]; then
echo "depend = $i" >> "$pkginfo"
for i in $provides; do
echo "provides = $i" >> "$pkginfo"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment