Skip to content

Commit

Permalink
UBUNTU: [Packaging] update-version-dkms -- maintain flags fields
Browse files Browse the repository at this point in the history
Reinstate flags fields (fields 3 onwards) when updating version numbers.

BugLink: https://bugs.launchpad.net/bugs/1912803
Signed-off-by: Andy Whitcroft <apw@canonical.com>
  • Loading branch information
Andy Whitcroft committed Jan 25, 2021
1 parent b110285 commit 264faaf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions update-version-dkms
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fi

# Determine if we have any updates.
: >"debian/dkms-versions.new"
while read package version
while read package version remainder
do
for pocket_raw in $pocket_list
do
Expand All @@ -46,12 +46,13 @@ EOL
if [ "$version" != "$pocket_version" ]; then
echo "$package: updated to $pocket_version"
fi
echo "$package $pocket_version" >>"debian/dkms-versions.new"
echo "$package $pocket_version $remainder" | sed -e 's/ *$//' >>"debian/dkms-versions.new"
done <"debian/dkms-versions"
if ! cmp -s "debian/dkms-versions.new" "debian/dkms-versions"; then
mv -f "debian/dkms-versions.new" "debian/dkms-versions"
git commit -a -s -m "UBUNTU: update dkms package versions" \
-m "BugLink: https://bugs.launchpad.net/bugs/1786013"
git commit -s -m "UBUNTU: update dkms package versions" \
-m "BugLink: https://bugs.launchpad.net/bugs/1786013" \
"debian/dkms-versions"
else
rm -f "debian/dkms-versions.new"
fi

0 comments on commit 264faaf

Please sign in to comment.