better error diagnostics

This commit is contained in:
Дмитрий Левин 2003-11-23 21:31:44 +00:00
parent d0c573bce2
commit df65e04e47
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ file="$1"
head -1 "$file" |grep -qs '^#%PAM' || exit 0
if [ -n "$PAM_NAME_SUFFIX" -a -z "${PAM_NAME_SUFFIX##%*}" ]; then
Fatal "invalid PAM_NAME_SUFFIX=$PAM_NAME_SUFFIX"
Fatal "invalid PAM_NAME_SUFFIX: build system provides no valid libpam-devel package"
fi
echo "pam$PAM_NAME_SUFFIX(${file##*/})"

View File

@ -26,11 +26,11 @@ file="$1"
head -1 "$file" |grep -qs '^#%PAM' || exit 0
if [ -n "$PAM_SO_SUFFIX" -a -z "${PAM_SO_SUFFIX##%*}" ]; then
Fatal "invalid PAM_SO_SUFFIX=$PAM_SO_SUFFIX"
Fatal "invalid PAM_SO_SUFFIX: build system provides no valid libpam-devel package"
fi
if [ -n "$PAM_NAME_SUFFIX" -a -z "${PAM_NAME_SUFFIX##%*}" ]; then
Fatal "invalid PAM_NAME_SUFFIX=$PAM_NAME_SUFFIX"
Fatal "invalid PAM_NAME_SUFFIX: build system provides no valid libpam-devel package"
fi
# hack for "buildreq -bi".