pck-update: batter test when looking for unpackaged files
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
54e987e3b2
commit
0388269d90
@ -2284,14 +2284,16 @@ It seems good but do not forget to run quality and security tests.""${NORM}"
|
||||
[ $? -eq 0 ] || notify.error $"can't create temporary files"
|
||||
notify.debug "tmpunpackfiles = \`${NOTE}$tmpunpackfiles${NORM}'"
|
||||
|
||||
LC_ALL=C \
|
||||
rpmbuild -bl --nodeps --nobuild \
|
||||
$SRPM_SPECFILE_WITH_PATH $USER_RPMDEFINE_OPTS 2>&1 | \
|
||||
sed -e '/./{H;$!d;}' -e 'x;/RPM build errors:/!d;' | \
|
||||
while read line; do
|
||||
case "$line" in *\ /*|/*) echo "$line" ;; esac
|
||||
done | sed -e "$format_unpackaged_file_list" \
|
||||
> $tmpunpackfiles
|
||||
local skipline=1
|
||||
while read line; do
|
||||
case "$line" in
|
||||
"error: Installed (but unpackaged) file(s) found:")
|
||||
skipline=0; continue ;;
|
||||
"") skipline=1 ;;
|
||||
esac
|
||||
[ "$skipline" = 1 ] || echo "$line"
|
||||
done < <(LC_ALL=C rpmbuild -bl --nobuild \
|
||||
$SRPM_SPECFILE_WITH_PATH 2>&1) > $tmpunpackfiles
|
||||
|
||||
if [ -s "$tmpunpackfiles" ]; then
|
||||
notify.error $"\
|
||||
|
Loading…
Reference in New Issue
Block a user