| @@ -1,16 +1,16 @@ | | | @@ -1,16 +1,16 @@ |
1 | #!@SH@ -e | | 1 | #!@SH@ -e |
2 | # | | 2 | # |
3 | # $Id: pkg_chk.sh,v 1.73 2014/04/23 00:01:01 abs Exp $ | | 3 | # $Id: pkg_chk.sh,v 1.74 2018/10/08 10:35:15 abs Exp $ |
4 | # | | 4 | # |
5 | # TODO: Make -g check dependencies and tsort | | 5 | # TODO: Make -g check dependencies and tsort |
6 | # TODO: Make -g list user-installed packages first, followed by commented | | 6 | # TODO: Make -g list user-installed packages first, followed by commented |
7 | # out automatically installed packages | | 7 | # out automatically installed packages |
8 | # TODO: List user-installed packages that are not in config | | 8 | # TODO: List user-installed packages that are not in config |
9 | | | 9 | |
10 | # Copyright (c) 2001-2012 David Brownlee (Standard 2 clause BSD licence) | | 10 | # Copyright (c) 2001-2012 David Brownlee (Standard 2 clause BSD licence) |
11 | # All rights reserved. | | 11 | # All rights reserved. |
12 | # | | 12 | # |
13 | # Redistribution and use in source and binary forms, with or without | | 13 | # Redistribution and use in source and binary forms, with or without |
14 | # modification, are permitted provided that the following conditions | | 14 | # modification, are permitted provided that the following conditions |
15 | # are met: | | 15 | # are met: |
16 | # | | 16 | # |
| @@ -799,32 +799,32 @@ verbose_var() | | | @@ -799,32 +799,32 @@ verbose_var() |
799 | var=$1 | | 799 | var=$1 |
800 | shift | | 800 | shift |
801 | verbose Variable: $var = $(eval echo \$$var) $@ | | 801 | verbose Variable: $var = $(eval echo \$$var) $@ |
802 | fi | | 802 | fi |
803 | } | | 803 | } |
804 | | | 804 | |
805 | original_argv="$@" # just used for verbose output | | 805 | original_argv="$@" # just used for verbose output |
806 | while getopts BC:D:L:P:U:abcfghiklNnpqrsuv ch; do | | 806 | while getopts BC:D:L:P:U:abcfghiklNnpqrsuv ch; do |
807 | case "$ch" in | | 807 | case "$ch" in |
808 | a ) opt_a=1 ;; | | 808 | a ) opt_a=1 ;; |
809 | B ) opt_B=1 ;; | | 809 | B ) opt_B=1 ;; |
810 | b ) opt_b=1 ;; | | 810 | b ) opt_b=1 ;; |
811 | C ) opt_C="$OPTARG" ;; | | 811 | C ) opt_C="$OPTARG" ;; |
812 | c ) opt_a=1 ; opt_q=1 ; echo "-c is deprecated - use -a -q" ;; | | 812 | c ) opt_a=1 ; opt_q=1 ; echo "** -c deprecated - use -a -q" 1>&2 ;; |
813 | D ) opt_D="$OPTARG" ;; | | 813 | D ) opt_D="$OPTARG" ;; |
814 | f ) opt_f=1 ;; | | 814 | f ) opt_f=1 ;; |
815 | g ) opt_g=1 ;; | | 815 | g ) opt_g=1 ;; |
816 | h ) opt_h=1 ;; | | 816 | h ) opt_h=1 ;; |
817 | i ) opt_u=1 ; opt_q=1 ; echo "-i is deprecated - use -u -q" ;; | | 817 | i ) opt_u=1 ; opt_q=1 ; echo "** -i deprecated - use -u -q" 1>&2 ;; |
818 | k ) opt_k=1 ;; | | 818 | k ) opt_k=1 ;; |
819 | L ) opt_L="$OPTARG" ;; | | 819 | L ) opt_L="$OPTARG" ;; |
820 | l ) opt_l=1 ;; | | 820 | l ) opt_l=1 ;; |
821 | N ) opt_N=1 ;; | | 821 | N ) opt_N=1 ;; |
822 | n ) opt_n=1 ;; | | 822 | n ) opt_n=1 ;; |
823 | p ) opt_p=1 ;; | | 823 | p ) opt_p=1 ;; |
824 | P ) opt_P="$OPTARG" ;; | | 824 | P ) opt_P="$OPTARG" ;; |
825 | q ) opt_q=1 ;; | | 825 | q ) opt_q=1 ;; |
826 | r ) opt_r=1 ;; | | 826 | r ) opt_r=1 ;; |
827 | s ) opt_s=1 ;; | | 827 | s ) opt_s=1 ;; |
828 | U ) opt_U="$OPTARG" ;; | | 828 | U ) opt_U="$OPTARG" ;; |
829 | u ) opt_u=1 ;; | | 829 | u ) opt_u=1 ;; |
830 | v ) opt_v=1 ;; | | 830 | v ) opt_v=1 ;; |