Commit 9c3ca700 authored by Vitaly Lipatov's avatar Vitaly Lipatov

check_publish.sh: fix script

parent 8f76ee2a
...@@ -30,21 +30,32 @@ print_usedby() ...@@ -30,21 +30,32 @@ print_usedby()
[ -n "$SPECLIST" ] || SPECLIST=`find $RPMDIR/SPECS -type f -name "*.spec"` [ -n "$SPECLIST" ] || SPECLIST=`find $RPMDIR/SPECS -type f -name "*.spec"`
for i in $SPECLIST ; do for i in $SPECLIST ; do
if echo $i | grep -q HELP ; then if echo $i | grep -q HELP ; then
continue continue
fi fi
LANG=C rpmgp -c $i 2>&1 | grep -v "^Note" | grep -v "^Checking" | grep -v "^Repository" echo $i
#LANG=C rpmgp -c $i 2>&1 | grep -v "^Note" | grep -v "^Checking" | grep -v "^Repository"
USEDBY=$(get_wd `basename $i .spec`) USEDBY=$(get_wd `basename $i .spec`)
if [ -n "$USEDBY" ] ; then if [ -n "$USEDBY" ] ; then
print_usedby $i $USEDBY >$i.usedby print_usedby $i $USEDBY >$i.usedby
#[ -n "`cat $i.usedby`" ] || #[ -n "`cat $i.usedby`" ] ||
else else
if [ -r $i.usedby ] ; then # if [ -r $i.usedby ] ; then
echo "$i do not required anymore" # echo "$i do not required anymore"
else # else
rm -f $i.usedby rm -f $i.usedby
fi # fi
fi
rpmbugs -t $i | grep -v "CLO.*FIX" | grep "@altlinux" >$i.bugs
test -s $i.bugs || rm -f $i.bugs
if rpmgp -c $i | grep -q MISSED ; then
rpmgp -c $i >$i.missed
else
rm -f $i.$missed
fi fi
done done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment