[pacman-dev] [PATCH] Don't bother if a package has already been built when using the --nobuild option

Anton Fiuman llexiw at gmail.com
Mon Jun 2 00:41:52 EDT 2008


makepkg should not abort with error when a user uses the --nobuild option to extract sources if a package has already been built.

Signed-off-by: Anton Fiuman <llexiw at gmail.com>
---
 scripts/makepkg.sh.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 6e2f1ad..08313bf 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1354,7 +1354,7 @@ devel_check
 devel_update
 
 if [ -f "$PKGDEST/${pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}" \
-     -a "$FORCE" = "0" -a "$GENINTEG" = "0" -a "$SOURCEONLY" = "0" ]; then
+     -a "$FORCE" = "0" -a "$GENINTEG" = "0" -a "$SOURCEONLY" = "0" -a "$NOBUILD" = "0" ]; then
 	if [ "$INSTALL" = "1" ]; then
 		warning "$(gettext "A package has already been built, installing existing package...")"
 		install_package
-- 
1.5.5.3





More information about the pacman-dev mailing list