Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion build-recipe-dsc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ recipe_prepare_dsc() {
DEB_RELEASE=`sed 's/%.*$//' <<< $RELEASE`
OBS_DCH_RELEASE=""


if test "$RECIPEFILE" = debian/control -o "$RECIPEFILE" = debian.control ; then
dsc_export_origtar
mv $BUILD_ROOT$DEB_SOURCEDIR $BUILD_ROOT$TOPDIR/BUILD
Expand Down Expand Up @@ -118,6 +117,13 @@ recipe_prepare_dsc() {
DEB_DSCFILE="${DEB_DSCFILE##*/}"
fi

if test -n "$BUILD_VCSURL" ; then
echo "XBS-Obs-Vcs: $BUILD_VCSURL" >> $BUILD_ROOT$TOPDIR/BUILD/debian/control
fi
if test -n "$DISTURL" ; then
echo "XBS-Obs-Disturl: $DISTURL" >> $BUILD_ROOT$TOPDIR/BUILD/debian/control
fi

# run/copy sources
chroot $BUILD_ROOT su -c "dpkg-source -x $DEB_SOURCEDIR/$DEB_DSCFILE $TOPDIR/BUILD" - $BUILD_USER

Expand Down