File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,13 +57,13 @@ if [ ! -x /usr/bin/gbp ]; then
57
57
exit 1
58
58
fi
59
59
60
- changelog_package=$( dpkg-parsechangelog | sed -n ' s/^Source: //p ' )
60
+ changelog_package=$( dpkg-parsechangelog -SSource )
61
61
if [ " ${package} " != " ${changelog_package} " ]; then
62
62
echo " This script is configured to create snapshots for ${package} but you are trying to create a snapshot for ${changelog_package} "
63
63
exit 1
64
64
fi
65
65
66
- bare_upstream_version=$( sed -E ' s/( [^-]+).*/\1/ ' VERSION_CURRENT )
66
+ bare_upstream_version=$( dpkg-parsechangelog -SVersion | sed -r ' s/- [^-]+$// ' )
67
67
echo " Found bare upstream version: ${bare_upstream_version} "
68
68
snapshot_version=" ${bare_upstream_version} -0+$( date +%Y%m%d) +git$( git rev-parse --short HEAD) "
69
69
echo " Upstream snapshot version: ${snapshot_version} "
You can’t perform that action at this time.
0 commit comments