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(){ ...@@ -82,7 +82,7 @@ do_day(){
# also ignoring this # also ignoring this
: :
else 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 if [ ! -e "$FULLTARGET.1" ] ; then
ln -s $MONTHPATH/$DAY/$FILE $FULLTARGET.1 ln -s $MONTHPATH/$DAY/$FILE $FULLTARGET.1
echo "$MONTHPATH/$DAY/$FILE linked from $FULLTARGET.1" echo "$MONTHPATH/$DAY/$FILE linked from $FULLTARGET.1"
...@@ -91,12 +91,24 @@ do_day(){ ...@@ -91,12 +91,24 @@ do_day(){
# also ignoring this # also ignoring this
: :
else else
# so far, no such case has been found # so far we found one such case...
echo "oh no $FULLTARGET.1 also exists and thus we don't know what to do, thus ignoring." >> $PROBLEMS if [ ! -e "$FULLTARGET.2" ] ; then
echo "$MONTHPATH/$DAY/$FILE is the source of the problem" >> $PROBLEMS ln -s $MONTHPATH/$DAY/$FILE $FULLTARGET.2
ls -l $FULLTARGET >> $PROBLEMS echo "$MONTHPATH/$DAY/$FILE linked from $FULLTARGET.2"
ls -l $FULLTARGET.0 >> $PROBLEMS let COUNTER+=1
echo >> $PROBLEMS 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.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 fi
fi fi
......
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