1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

Change the exit code for pacman_deptest().

Changed the exit code for missing deps from 1 to 127 because 1 is used
for other errors. makepkg breaks if pacman exits with 1 for any reason
other than a missing dep.

Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
This commit is contained in:
Andrew Fyfe 2007-07-02 18:28:39 +01:00 committed by Dan McGee
parent 1480ac29e4
commit 7d74572887
2 changed files with 2 additions and 2 deletions

View File

@ -296,7 +296,7 @@ check_deps() {
pmout=$(pacman $PACMAN_OPTS -T $*)
ret=$?
if [ $ret -eq 1 ]; then #unresolved deps
if [ $ret -eq 127 ]; then #unresolved deps
echo "$pmout"
elif [ $ret -ne 0 ]; then
error "$(gettext "Pacman returned a fatal error (%i): %s")" "$ret" "$pmout"

View File

@ -79,7 +79,7 @@ int pacman_deptest(alpm_list_t *targets)
if(!found) {
printf("%s\n", saved_target);
retval = 1;
retval = 127;
}
free(saved_target);
}