Skip to content

Commit 60d9650

Browse files
committed
dummy-dependency: use apt-get-noninteractive (but --yes remains optional)
1 parent 022f31b commit 60d9650

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

usr/bin/dummy-dependency

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ Description: dummy-package for '${package_to_replace}'
135135
fi
136136

137137
printf '%s\n' "$0: INFO: '${remove_action}'ing package '${package_to_replace}' and installing 'dummy-${package_to_replace}'..."
138-
printf '%s\n' "$0: EXECUTING: apt-get ${yes_option} ${remove_action} -- ${package_to_replace} ${deb_file_copy}"
139-
if apt-get ${yes_option} "${remove_action}" -- "${package_to_replace}" "${deb_file_copy}" ; then
138+
printf '%s\n' "$0: EXECUTING: apt-get-noninteractive ${yes_option} ${remove_action} -- ${package_to_replace} ${deb_file_copy}"
139+
if apt-get-noninteractive ${yes_option} "${remove_action}" -- "${package_to_replace}" "${deb_file_copy}" ; then
140140
printf '%s\n' "$0: INFO: Dummy package installed."
141141
else
142-
printf '%s\n' "$0: ERROR: 'apt-get' command failed!" >&2
142+
printf '%s\n' "$0: ERROR: 'apt-get-noninteractive' command failed!" >&2
143143
exit 1
144144
fi
145145

0 commit comments

Comments
 (0)