Modify for obs build

This commit is contained in:
jeff200902 2020-07-27 19:13:39 +08:00
parent 544ec84a85
commit b9a5a1ac0e
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From 2372a1ac834d17d99899275685606f5ebb15f265 Mon Sep 17 00:00:00 2001
From: jeff200902 <jeff200902@163.com>
Date: Mon, 27 Jul 2020 18:59:20 +0800
Subject: [PATCH] modify for osb build
---
build | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/build b/build
index 9b2d0f2..df9ce59 100755
--- a/build
+++ b/build
@@ -1549,6 +1549,12 @@ if test \( -n "$RPMS" -o -n "$DEBS" \) -a -n "$CREATE_BASELIBS"; then
create_baselibs
fi
+if test -f "$BUILD_ROOT/etc/resolv.conf"; then
+ cat $BUILD_ROOT/etc/resolv.conf
+else
+ cp /etc/resolv.conf $BUILD_ROOT/etc/
+fi
+
exitcode=0
# post build work
--
2.23.0

View File

@ -5,7 +5,7 @@ Summary: A tool to build binary packages
License: GPL-2.0-only OR GPL-3.0-only
Url: https://github.com/openSUSE/obs-build
Source: obs-build-%{version}.tar.gz
Patch0000: 0001-modify-for-obs-build.patch
BuildArch: noarch
Requires: bash binutils perl tar psmisc build-mkbaselibs
BuildRequires: bash binutils perl psmisc tar