Thu May 15 17:51:44 2008 UTC ()
Shift after -K.


(joerg)
diff -r1.1.1.1 -r1.2 pkgsrc/pkgtools/pkg_leaves/files/pkg_leaves

cvs diff -r1.1.1.1 -r1.2 pkgsrc/pkgtools/pkg_leaves/files/pkg_leaves (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_leaves/files/pkg_leaves 2008/05/15 17:44:42 1.1.1.1
+++ pkgsrc/pkgtools/pkg_leaves/files/pkg_leaves 2008/05/15 17:51:44 1.2
@@ -36,26 +36,28 @@ usage() @@ -36,26 +36,28 @@ usage()
36 echo "Print all automatically installed leaf packages." 36 echo "Print all automatically installed leaf packages."
37 echo "If -a is specified, print all leaf packages." 37 echo "If -a is specified, print all leaf packages."
38 exit 1 38 exit 1
39} 39}
40 40
41while [ $# -gt 0 ] ; do 41while [ $# -gt 0 ] ; do
42 case "$1" in 42 case "$1" in
43 -a) 43 -a)
44 skip_manual=no 44 skip_manual=no
45 shift 45 shift
46 ;; 46 ;;
47 -K) 47 -K)
48 PKG_DBDIR="$2" 48 PKG_DBDIR="$2"
 49 shift
 50 shift
49 ;; 51 ;;
50 esac 52 esac
51done 53done
52 54
53${PKG_INFO} -K "${PKG_DBDIR}" -e '*' | while read pkg; do 55${PKG_INFO} -K "${PKG_DBDIR}" -e '*' | while read pkg; do
54 if [ -z "`${PKG_INFO} -K "${PKG_DBDIR}" -q -R ${pkg}`" ]; then 56 if [ -z "`${PKG_INFO} -K "${PKG_DBDIR}" -q -R ${pkg}`" ]; then
55 if [ ${skip_manual} = "yes" ]; then 57 if [ ${skip_manual} = "yes" ]; then
56 if [ "`${PKG_INFO} -K "${PKG_DBDIR}" -Q automatic ${pkg}`" != yes ]; then 58 if [ "`${PKG_INFO} -K "${PKG_DBDIR}" -Q automatic ${pkg}`" != yes ]; then
57 continue 59 continue
58 fi 60 fi
59 fi 61 fi
60 echo ${pkg} 62 echo ${pkg}
61 fi 63 fi