Commit 2a3d2fd6 authored by Holger Levsen's avatar Holger Levsen
Browse files

rdn: deal correctly with binNMU versions with an epoch too

parent 1f7e1def
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -17,12 +17,16 @@ For more information please go to https://reproduce.debian.net or join

EOF
echo "Preparing download of sources for $1"
SOURCE=$(basename "$1" | cut -d_ -f1)
# take VERSION from .buildinfo file name but drop +bX suffix from binNMUs
VERSION=$(basename "$1" | cut -d_ -f2 | sed -r -e 's#\+b[[:digit:]]+$##g')
SOURCE=$(basename "$1" | cut -d '_' -f1)
# take VERSION from .buildinfo file (which has the epoch) but drop +bX suffix from binNMUs
VERSION=$(grep ^Version: "$1" | cut -d ' ' -f2- | sed -r -e 's#\+b[[:digit:]]+$##g')
echo Source: $SOURCE
echo Source: $VERSION
echo
echo "+------------------------------------------------------------------------------+"
echo "| Downloading sources                          $(date -u -R) |"
echo "+------------------------------------------------------------------------------+"
echo

cd "$(dirname "$1")"
mkdir -p etc/apt
+7 −3
Original line number Diff line number Diff line
@@ -17,12 +17,16 @@ For more information please go to https://reproduce.debian.net or join

EOF
echo "Preparing download of sources for $1"
SOURCE=$(basename "$1" | cut -d_ -f1)
# take VERSION from .buildinfo file name but drop +bX suffix from binNMUs
VERSION=$(basename "$1" | cut -d_ -f2 | sed -r -e 's#\+b[[:digit:]]+$##g')
SOURCE=$(basename "$1" | cut -d '_' -f1)
# take VERSION from .buildinfo file (which has the epoch) but drop +bX suffix from binNMUs
VERSION=$(grep ^Version: "$1" | cut -d ' ' -f2- | sed -r -e 's#\+b[[:digit:]]+$##g')
echo Source: $SOURCE
echo Source: $VERSION
echo
echo "+------------------------------------------------------------------------------+"
echo "| Downloading sources                          $(date -u -R) |"
echo "+------------------------------------------------------------------------------+"
echo

cd "$(dirname "$1")"
mkdir -p etc/apt
+7 −3
Original line number Diff line number Diff line
@@ -17,12 +17,16 @@ For more information please go to https://reproduce.debian.net or join

EOF
echo "Preparing download of sources for $1"
SOURCE=$(basename "$1" | cut -d_ -f1)
# take VERSION from .buildinfo file name but drop +bX suffix from binNMUs
VERSION=$(basename "$1" | cut -d_ -f2 | sed -r -e 's#\+b[[:digit:]]+$##g')
SOURCE=$(basename "$1" | cut -d '_' -f1)
# take VERSION from .buildinfo file (which has the epoch) but drop +bX suffix from binNMUs
VERSION=$(grep ^Version: "$1" | cut -d ' ' -f2- | sed -r -e 's#\+b[[:digit:]]+$##g')
echo Source: $SOURCE
echo Source: $VERSION
echo
echo "+------------------------------------------------------------------------------+"
echo "| Downloading sources                          $(date -u -R) |"
echo "+------------------------------------------------------------------------------+"
echo

cd "$(dirname "$1")"
mkdir -p etc/apt
+7 −3
Original line number Diff line number Diff line
@@ -17,12 +17,16 @@ For more information please go to https://reproduce.debian.net or join

EOF
echo "Preparing download of sources for $1"
SOURCE=$(basename "$1" | cut -d_ -f1)
# take VERSION from .buildinfo file name but drop +bX suffix from binNMUs
VERSION=$(basename "$1" | cut -d_ -f2 | sed -r -e 's#\+b[[:digit:]]+$##g')
SOURCE=$(basename "$1" | cut -d '_' -f1)
# take VERSION from .buildinfo file (which has the epoch) but drop +bX suffix from binNMUs
VERSION=$(grep ^Version: "$1" | cut -d ' ' -f2- | sed -r -e 's#\+b[[:digit:]]+$##g')
echo Source: $SOURCE
echo Source: $VERSION
echo
echo "+------------------------------------------------------------------------------+"
echo "| Downloading sources                          $(date -u -R) |"
echo "+------------------------------------------------------------------------------+"
echo

cd "$(dirname "$1")"
mkdir -p etc/apt
+7 −3
Original line number Diff line number Diff line
@@ -17,12 +17,16 @@ For more information please go to https://reproduce.debian.net or join

EOF
echo "Preparing download of sources for $1"
SOURCE=$(basename "$1" | cut -d_ -f1)
# take VERSION from .buildinfo file name but drop +bX suffix from binNMUs
VERSION=$(basename "$1" | cut -d_ -f2 | sed -r -e 's#\+b[[:digit:]]+$##g')
SOURCE=$(basename "$1" | cut -d '_' -f1)
# take VERSION from .buildinfo file (which has the epoch) but drop +bX suffix from binNMUs
VERSION=$(grep ^Version: "$1" | cut -d ' ' -f2- | sed -r -e 's#\+b[[:digit:]]+$##g')
echo Source: $SOURCE
echo Source: $VERSION
echo
echo "+------------------------------------------------------------------------------+"
echo "| Downloading sources                          $(date -u -R) |"
echo "+------------------------------------------------------------------------------+"
echo

cd "$(dirname "$1")"
mkdir -p etc/apt
Loading