Skip to content

bee: quick fix to disable buildarchive #1206

Merged
merged 1 commit into from
Aug 22, 2019
Merged

bee: quick fix to disable buildarchive #1206

merged 1 commit into from
Aug 22, 2019

Conversation

wwwutz
Copy link
Collaborator

@wwwutz wwwutz commented Aug 22, 2019

quick local patch until upstream fixed it and increases version

diff --git a/src/beesh.sh.in b/src/beesh.sh.in
@@ -163,7 +163,6 @@ function check_repositories() {
 
     mkdir -pv "${BEE_BEEDIR}"
     mkdir -pv "${BEE_PKGDIR}"
-    mkdir -pv "${BEE_BUILDARCHIVEDIR}"
 
     if [ ! -w "${BEE_BEEDIR}" ] ; then
         print_error " !! ${BEE_BEEDIR} not writable"
@@ -175,13 +174,18 @@ function check_repositories() {
         r=1
     fi
 
-    if [ ! -w "${BEE_BUILDARCHIVEDIR}" ] ; then
-        print_error " !! ${BEE_BUILDARCHIVEDIR} not writable"
-        r=1
-    fi
+    if [ "${OPT_ARCHIVE_BUILD}" == "yes" ] ; then
 
-    if [ "$r"  != "0" ] ; then
-        exit 1
+        mkdir -pv "${BEE_BUILDARCHIVEDIR}"
+
+        if [ ! -w "${BEE_BUILDARCHIVEDIR}" ] ; then
+            print_error " !! ${BEE_BUILDARCHIVEDIR} not writable"
+            r=1
+        fi
+
+        if [ "$r"  != "0" ] ; then
+            exit 1
+        fi
     fi
 }

quick local patch until upstream fixed it and increases version
@donald
Copy link
Collaborator

donald commented Aug 22, 2019

a PR in mariux64/bee would be nice.

@donald donald merged commit 5aa9080 into master Aug 22, 2019
@wwwutz wwwutz deleted the bee-fix-32 branch September 3, 2019 06:50
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants