Skip to content

Commit 057c4f8

Browse files
Export VCS and DISTURL also to debian binaries.
To satisfy request to have a trace inside of the binary result for tracing back.
1 parent 8ab4d0a commit 057c4f8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

build-recipe-dsc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ recipe_prepare_dsc() {
7575
DEB_RELEASE=`sed 's/%.*$//' <<< $RELEASE`
7676
OBS_DCH_RELEASE=""
7777

78-
7978
if test "$RECIPEFILE" = debian/control -o "$RECIPEFILE" = debian.control ; then
8079
dsc_export_origtar
8180
mv $BUILD_ROOT$DEB_SOURCEDIR $BUILD_ROOT$TOPDIR/BUILD
@@ -118,6 +117,13 @@ recipe_prepare_dsc() {
118117
DEB_DSCFILE="${DEB_DSCFILE##*/}"
119118
fi
120119

120+
if test -n "$BUILD_VCSURL" ; then
121+
echo "XBS-Obs-Vcs: $BUILD_VCSURL" >> $BUILD_ROOT$TOPDIR/BUILD/debian/control
122+
fi
123+
if test -n "$DISTURL" ; then
124+
echo "XBS-Obs-Disturl: $DISTURL" >> $BUILD_ROOT$TOPDIR/BUILD/debian/control
125+
fi
126+
121127
# run/copy sources
122128
chroot $BUILD_ROOT su -c "dpkg-source -x $DEB_SOURCEDIR/$DEB_DSCFILE $TOPDIR/BUILD" - $BUILD_USER
123129

0 commit comments

Comments
 (0)