pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_rolling-replace Update to pkg_rolling-rep...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/92de51e071b2
branches:  trunk
changeset: 646610:92de51e071b2
user:      abs <abs%pkgsrc.org@localhost>
date:      Thu Feb 12 08:22:16 2015 +0000

description:
Update to pkg_rolling-replace-0.24.2
Add -B - to pass -B to pkg_chk when determining which packages to update

diffstat:

 pkgtools/pkg_rolling-replace/Makefile                     |   4 ++--
 pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8  |  10 ++++++++--
 pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh |   8 +++++---
 3 files changed, 15 insertions(+), 7 deletions(-)

diffs (87 lines):

diff -r a2c48abed0a1 -r 92de51e071b2 pkgtools/pkg_rolling-replace/Makefile
--- a/pkgtools/pkg_rolling-replace/Makefile     Thu Feb 12 07:13:16 2015 +0000
+++ b/pkgtools/pkg_rolling-replace/Makefile     Thu Feb 12 08:22:16 2015 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.37 2014/10/09 14:06:50 wiz Exp $
+# $NetBSD: Makefile,v 1.38 2015/02/12 08:22:16 abs Exp $
 
-PKGNAME=       pkg_rolling-replace-0.24.1
+PKGNAME=       pkg_rolling-replace-0.24.2
 CATEGORIES=    pkgtools
 
 MAINTAINER=    ngoffee%bbn.com@localhost
diff -r a2c48abed0a1 -r 92de51e071b2 pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8
--- a/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8  Thu Feb 12 07:13:16 2015 +0000
+++ b/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.8  Thu Feb 12 08:22:16 2015 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: pkg_rolling-replace.8,v 1.19 2010/02/01 19:06:43 sno Exp $
+.\" $NetBSD: pkg_rolling-replace.8,v 1.20 2015/02/12 08:22:16 abs Exp $
 .Dd February 1, 2010
 .Dt PKG_ROLLING-REPLACE 8
 .Os
@@ -7,7 +7,7 @@
 .Nd rebuild or update packages using 'make replace' in tsorted order
 .Sh SYNOPSIS
 .Nm
-.Op Fl Fhknrsuv
+.Op Fl BFhknrsuv
 .Op Fl D Ar VARIABLE=VALUE
 .Op Fl L Ar path
 .Op Fl X Ar pkgs
@@ -70,6 +70,12 @@
 packages.)
 .Ss Options
 .Bl -tag -width xxxxxxxx
+.It Fl B
+Pass
+.Dq -B
+to
+.Xl pkg_chk 8
+to also mark any packages with any change in build version data.
 .It Fl D Ar VARIABLE=VALUE
 Passes VARIABLE=VALUE to each make call.
 .Dq -D
diff -r a2c48abed0a1 -r 92de51e071b2 pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh
--- a/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh Thu Feb 12 07:13:16 2015 +0000
+++ b/pkgtools/pkg_rolling-replace/files/pkg_rolling-replace.sh Thu Feb 12 08:22:16 2015 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: pkg_rolling-replace.sh,v 1.33 2012/10/03 22:14:03 wiz Exp $
+# $NetBSD: pkg_rolling-replace.sh,v 1.34 2015/02/12 08:22:16 abs Exp $
 #<license>
 # Copyright (c) 2006 BBN Technologies Corp.  All rights reserved.
 #
@@ -102,6 +102,7 @@
 {
     echo "Usage: pkg_rolling-replace [opts]
         -h         This help
+        -B         Pass -B to pkg_chk (only applies with -u)
         -F         Fetch sources (including depends) only, don't build
         -k         Keep running, even on error
         -n         Don't actually do make replace
@@ -150,7 +151,7 @@
 # supported.  Newer versions may or may not work (patches welcome).
 check_packages_mismatched()
 {
-    ${PKG_CHK} -u -q | while read line; do
+    ${PKG_CHK} -u -q $opt_B | while read line; do
         # duplicate output of pkg_chk to stderr (bypass $(...) or `...`)
         echo "${OPC} $line" 1>&2
        # Look for the first thing that looks like pkg-version rather
@@ -332,13 +333,14 @@
 MAKE_VAR="IN_PKG_ROLLING_REPLACE=1"
 MAKE_VAR_SEP=" "
 
-args=$(getopt FhknursvD:x:X:L: $*)
+args=$(getopt BFhknursvD:x:X:L: $*)
 if [ $? -ne 0 ]; then
     opt_h=1
 fi
 set -- $args
 while [ $# -gt 0 ]; do
     case "$1" in
+        -B) opt_B=-B ;;
         -F) opt_F=1 ;;
         -h) opt_h=1 ;;
         -k) opt_k=1 ;;



Home | Main Index | Thread Index | Old Index