Commit 951dd1c0 authored by Holger Levsen's avatar Holger Levsen

reproducible Debian: also deal with 4 .buildinfo files with the same name

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent 5d173881
......@@ -82,7 +82,7 @@ do_day(){
# also ignoring this
:
else
# so far we found three such cases...
# so far we found three such cases... (out of one million .buildinfo files)
if [ ! -e "$FULLTARGET.1" ] ; then
ln -s $MONTHPATH/$DAY/$FILE $FULLTARGET.1
echo "$MONTHPATH/$DAY/$FILE linked from $FULLTARGET.1"
......@@ -90,16 +90,28 @@ do_day(){
elif [ "$(readlink -f $FULLTARGET.1)" = "$MONTHPATH/$DAY/$FILE" ] ; then
# also ignoring this
:
else
# so far we found one such case...
if [ ! -e "$FULLTARGET.2" ] ; then
ln -s $MONTHPATH/$DAY/$FILE $FULLTARGET.2
echo "$MONTHPATH/$DAY/$FILE linked from $FULLTARGET.2"
let COUNTER+=1
elif [ "$(readlink -f $FULLTARGET.2)" = "$MONTHPATH/$DAY/$FILE" ] ; then
# also ignoring this
:
else
# so far, no such case has been found
echo "oh no $FULLTARGET.1 also exists and thus we don't know what to do, thus ignoring." >> $PROBLEMS
echo "oh no $FULLTARGET.2 also exists and thus we don't know what to do, thus ignoring." >> $PROBLEMS
echo "$MONTHPATH/$DAY/$FILE is the source of the problem" >> $PROBLEMS
ls -l $FULLTARGET >> $PROBLEMS
ls -l $FULLTARGET.0 >> $PROBLEMS
ls -l $FULLTARGET.1 >> $PROBLEMS
ls -l $FULLTARGET.2 >> $PROBLEMS
echo >> $PROBLEMS
fi
fi
fi
fi
done
echo -n "Done processing $YEAR/$MONTH/$DAY"
if [ $COUNTER -gt 0 ] ; then
......
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