[pacman-dev] [PATCH] Resolve dependencies whenever --syncdeps is passed and --nodeps is not

Nezmer git at nezmer.info
Mon May 17 10:52:38 EDT 2010


With this patch, dependencies will be resolved and not silently ignored
when running:

makepkg --nobuild --syncdeps
makepkg --repackage --syncdeps

Also, a warning is displayed when repackaging and dependencies are not
being resolved.

Thank you Allan for the feedback.

Signed-off-by: Nezmer <git at nezmer.info>
---
 scripts/makepkg.sh.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index a2db90b..f57e066 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1867,9 +1867,9 @@ if (( SOURCEONLY )); then
 fi
 
 # fix flyspray bug #5973
-if (( NODEPS || NOBUILD || REPKG )); then
+if (( NODEPS || ( (NOBUILD || REPKG) && !DEP_BIN ) )); then
 	# no warning message needed for nobuild, repkg
-	if (( NODEPS )); then
+	if (( NODEPS || REPKG )); then
 		warning "$(gettext "Skipping dependency checks.")"
 	fi
 elif [ $(type -p "${PACMAN%% *}") ]; then
-- 
1.7.1



More information about the pacman-dev mailing list