diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-12-06 14:46:11 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-12-06 14:46:11 +0100 |
commit | 804419029ab1b969c8d2dedb9b3443225058521f (patch) | |
tree | 4b64854590c02645b4da578ee02da61c2e13d9cb /cmdline | |
parent | e75e5879c0e8d232a2e8f045685beeb8c965aba4 (diff) | |
download | apt-804419029ab1b969c8d2dedb9b3443225058521f.tar.gz |
replace run-parts with find|sort to avoid debianutils usage
After e75e5879 the reason for an implicit dependency on debianutils
(which is essential for debian, but likely not on other systems) was
just two uses of run-parts, which can be replaced with the a lot more
portable find-piped-into-sort duo.
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-key.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-key.in b/cmdline/apt-key.in index 3c2e2663f..790859e26 100644 --- a/cmdline/apt-key.in +++ b/cmdline/apt-key.in @@ -220,7 +220,7 @@ foreach_keyring_do() { if [ "${STRIPPED_TRUSTEDPARTS}/" = "$TRUSTEDPARTS" ]; then TRUSTEDPARTS="$STRIPPED_TRUSTEDPARTS" fi - for trusted in $(run-parts --list "$TRUSTEDPARTS" --regex '^.*\.gpg$'); do + for trusted in $(find "$TRUSTEDPARTS" -mindepth 1 -maxdepth 1 -regex '^.*\.gpg$' | sort); do if [ -s "$trusted" ]; then $ACTION "$trusted" "$@" fi |