pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/42267: pkg_comp: quick exit if pkg is installed already (patch)
The following reply was made to PR pkg/42267; it has been noted by GNATS.
From: "Martin S. Weber" <Ephaeton%gmx.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/42267: pkg_comp: quick exit if pkg is installed already (patch)
Date: Wed, 4 Nov 2009 12:19:54 -0500
Ooops, should've cvs diff -u the whole directory. sorry. Here we go:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkg_comp/Makefile,v
retrieving revision 1.43
diff -u -r1.43 Makefile
--- Makefile 9 Apr 2009 00:48:12 -0000 1.43
+++ Makefile 4 Nov 2009 17:18:44 -0000
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.43 2009/04/09 00:48:12 joerg Exp $
-DISTNAME= pkg_comp-1.31
+DISTNAME= pkg_comp-1.32
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
Index: files/pkg_comp.sh
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkg_comp/files/pkg_comp.sh,v
retrieving revision 1.35
diff -u -r1.35 pkg_comp.sh
--- files/pkg_comp.sh 13 May 2009 10:40:24 -0000 1.35
+++ files/pkg_comp.sh 4 Nov 2009 17:18:44 -0000
@@ -729,6 +729,10 @@
statfile="$prefix.stat"
init_script $script
cat >> $script <<EOF
+if pkg_info -qe "\$(make show-var VARNAME=PKGNAME)" ; then
+ echo "PKG_COMP ==> $p is already installed!"
+ exit 0
+fi
cd /usr/pkgsrc/$p
make $BUILD_TARGET
if [ \$? != 0 ]; then
Home |
Main Index |
Thread Index |
Old Index