3 # poldek-config - poldek(1) configuration program
5 # poldek-config is an program to provide consistent configurability.
6 # It accesses the main configuration file /etc/poldek/poldek.conf(5)
7 # in a manner that is easy to use by scripted applications.
9 # Author: Elan Ruusamäe <glen@pld-linux.org>
14 Usage: $0 [options] command
18 ignore [PACKAGE] [PACKAGE...]
19 Ignore package list - packages fits given mask will be invisible.
21 hold [PACKAGE] [PACKAGE...]
22 Prevent package listed from being upgraded if they are already installed.
28 echo >&2 "$PROGRAM: $*"
33 local option="$1"; shift
34 sed -i -e "/^$option/ s/.*/$option = $*/" "$poldek_conf"
37 # parse command line args
39 t=$(getopt -o h --long help -n "$PROGRAM" -- "$@")
40 [ $? != 0 ] && exit $?
54 die "Internal error: [$1] not recognized!"
74 option_set "$command" "$arguments"
77 die "Unknown command: $command"
83 poldek_conf=/etc/poldek/poldek.conf