Skip to content

Commit 7595923

Browse files
Merge pull request openSUSE#460 from alee-ccu/fallback-for-sid
build-recipe-debootstrap: add fallback for Debian SID distro
2 parents 034d730 + e979089 commit 7595923

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build-recipe-debootstrap

+5-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ recipe_prepare_debootstrap() {
3131

3232
recipe_build_debootstrap() {
3333
local arch=$(chroot $BUILD_ROOT su -c "dpkg-architecture -qDEB_BUILD_ARCH")
34-
local dist=$(chroot $BUILD_ROOT su -c "lsb_release --codename --short")
34+
if chroot $BUILD_ROOT grep -q '/sid' /etc/debian_version ; then
35+
local dist=unstable
36+
else
37+
local dist=$(chroot $BUILD_ROOT su -c "lsb_release --codename --short")
38+
fi
3539
local myroot=debootstraproot
3640
test -d $BUILD_ROOT/.build.binaries || cleanup_and_exit 1
3741
if test "$DO_INIT" = true -o ! -d "$BUILD_ROOT/.build.binaries/dists" ; then

0 commit comments

Comments
 (0)