]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
UBUNTU: [Packaging] update helper scripts
authorAndrea Righi <andrea.righi@canonical.com>
Thu, 27 Feb 2020 13:24:31 +0000 (14:24 +0100)
committerAndrea Righi <andrea.righi@canonical.com>
Thu, 27 Feb 2020 13:24:31 +0000 (14:24 +0100)
BugLink: https://bugs.launchpad.net/bugs/1786013
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
debian/scripts/helpers/open

index fd2ac1fc569e3574218da537b9044bfbcba3b9ff..7a2f5e3f9b64d7781aa8467992a05b054c46b42d 100755 (executable)
@@ -176,19 +176,10 @@ if [ -d "$DEBIAN/abi" ]; then
        if [ "$reuse_abi" -ne 0 ]; then
                # Get the old ABI directory:
                old=$(find "$DEBIAN/abi/" -mindepth 1 -maxdepth 1 -type d -a -name "${new%%-*}*")
-               if [ -z "${old}" ] && [ "${new##*.}" = "0" ] ; then
-                       # This is a new release so use the version of the previous changelog entry
-                       prev=$(dpkg-parsechangelog -l"$DEBIAN/changelog" -SVersion -o1 -c1)
-                       old=$(find "$DEBIAN/abi/" -mindepth 1 -maxdepth 1 -type d -a -name "${prev%%-*}*")
-               fi
                if [ "$(echo "$old" | wc -l)" -gt 1 ]; then
                        echo "Failed to rename the current ABI directory." \
                             "Multiple directories found. Please check \"$DEBIAN/abi/\"!" >&2
                        exit 1
-               elif [ -z "${old}" ] ; then
-                       echo "Failed to find the current ABI directory." \
-                            "Please check \"$DEBIAN/abi/\"!" >&2
-                       exit 1
                fi
                new="$DEBIAN/abi/$new"
                # Rename the ABI directory