From 13aec9a1419dc53aede75c404bd84007b375b0c1 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 9 Jan 2019 16:23:46 +0100 Subject: 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. --- abuild.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/abuild.in b/abuild.in index 566f528..6857ff0 100644 --- a/abuild.in +++ b/abuild.in @@ -991,7 +991,9 @@ prepare_metafiles() { echo "replaces = $i" >> "$pkginfo" done for i in $deps; do - echo "depend = $i" >> "$pkginfo" + if [ "$i" != "$name" ]; then + echo "depend = $i" >> "$pkginfo" + fi done for i in $provides; do echo "provides = $i" >> "$pkginfo" -- cgit v1.2.3-70-g09d2