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"
|
[ $? -eq 0 ] || notify.error $"can't create temporary files"
|
||||||
notify.debug "tmpunpackfiles = \`${NOTE}$tmpunpackfiles${NORM}'"
|
notify.debug "tmpunpackfiles = \`${NOTE}$tmpunpackfiles${NORM}'"
|
||||||
|
|
||||||
LC_ALL=C \
|
local skipline=1
|
||||||
rpmbuild -bl --nodeps --nobuild \
|
while read line; do
|
||||||
$SRPM_SPECFILE_WITH_PATH $USER_RPMDEFINE_OPTS 2>&1 | \
|
case "$line" in
|
||||||
sed -e '/./{H;$!d;}' -e 'x;/RPM build errors:/!d;' | \
|
"error: Installed (but unpackaged) file(s) found:")
|
||||||
while read line; do
|
skipline=0; continue ;;
|
||||||
case "$line" in *\ /*|/*) echo "$line" ;; esac
|
"") skipline=1 ;;
|
||||||
done | sed -e "$format_unpackaged_file_list" \
|
esac
|
||||||
> $tmpunpackfiles
|
[ "$skipline" = 1 ] || echo "$line"
|
||||||
|
done < <(LC_ALL=C rpmbuild -bl --nobuild \
|
||||||
|
$SRPM_SPECFILE_WITH_PATH 2>&1) > $tmpunpackfiles
|
||||||
|
|
||||||
if [ -s "$tmpunpackfiles" ]; then
|
if [ -s "$tmpunpackfiles" ]; then
|
||||||
notify.error $"\
|
notify.error $"\
|
||||||
|
Loading…
Reference in New Issue
Block a user