Skip to content

Commit

Permalink
Unify debian release patching in debtransform (#818)
Browse files Browse the repository at this point in the history
We also handle the OBS-DCH-RELEASE tag in debtransform now.
  • Loading branch information
darix committed May 19, 2022
1 parent 3fc507c commit 3a06d30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions build-recipe-dsc
Expand Up @@ -108,11 +108,6 @@ recipe_prepare_dsc() {
*) # No debver, add the first such token
OBS_DCH_RELEASE="-$DEB_RELEASE" ;;
esac
# "OBS_DCH_RELEASE" char offset aligned with "VERSION" in previous echo
echo "OBS-DCH-RELEASE: Suffixing DSC file with OBS respin number, to ${VERSION}${OBS_DCH_RELEASE}"
sed -e 's,^\(OBS-DCH-RELEASE:.*\)$,# \1,' \
-e 's,^\(Version:\).*$,\1'" ${VERSION}${OBS_DCH_RELEASE}"',' \
-i $BUILD_ROOT$TOPDIR/SOURCES/$RECIPEFILE
fi
fi
if ! debtransform $CHANGELOGARGS $RELEASEARGS $BUILD_ROOT$TOPDIR/SOURCES $BUILD_ROOT$TOPDIR/SOURCES/$RECIPEFILE $BUILD_ROOT$TOPDIR/SOURCES.DEB ; then
Expand Down
2 changes: 1 addition & 1 deletion debtransform
Expand Up @@ -488,7 +488,7 @@ if ($tarfile =~ /\.tgz$/) {
system ( ("mv", "$dir/$old", "$tmptar" ) ) == 0 || die("cannot rename .tgz to .tar.gz");
}

if ($tags->{'DEBTRANSFORM-RELEASE'} && $release) {
if (($tags->{'DEBTRANSFORM-RELEASE'} || $tags->{'OBS-DCH-RELEASE'}) && $release) {
# the tag DEBTRANSFORM-RELEASE in .dsc file instructs
# to append OBS build number to package version. The
# number is passed in "release" command line parameter.
Expand Down

0 comments on commit 3a06d30

Please sign in to comment.