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 \
|
|
||||||
$SRPM_SPECFILE_WITH_PATH $USER_RPMDEFINE_OPTS 2>&1 | \
|
|
||||||
sed -e '/./{H;$!d;}' -e 'x;/RPM build errors:/!d;' | \
|
|
||||||
while read line; do
|
while read line; do
|
||||||
case "$line" in *\ /*|/*) echo "$line" ;; esac
|
case "$line" in
|
||||||
done | sed -e "$format_unpackaged_file_list" \
|
"error: Installed (but unpackaged) file(s) found:")
|
||||||
> $tmpunpackfiles
|
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
|
if [ -s "$tmpunpackfiles" ]; then
|
||||||
notify.error $"\
|
notify.error $"\
|
||||||
|
Loading…
Reference in New Issue
Block a user