fix qubes release
This commit is contained in:
parent
b76c48a97c
commit
9a01f02a08
1 changed files with 6 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
diff --git a/usr/local/bin/build.sh.orig b/usr/local/bin/build.sh
|
||||
old mode 100644
|
||||
new mode 100755
|
||||
index c3b8f7a..2d09c31
|
||||
index c3b8f7a..d799817
|
||||
--- a/usr/local/bin/build.sh.orig
|
||||
+++ b/usr/local/bin/build.sh
|
||||
@@ -7,13 +7,14 @@
|
||||
|
@ -21,14 +21,13 @@ index c3b8f7a..2d09c31
|
|||
: "${MAX_ARTIFACT_SIZE:=300000000}" #300M
|
||||
: "${CI_DEBUG_BUILD:=}"
|
||||
|
||||
@@ -67,13 +68,23 @@ report() {
|
||||
@@ -67,13 +68,24 @@ report() {
|
||||
}
|
||||
|
||||
get_release() {
|
||||
+ echo $(grep PRETTY_NAME /etc/os-release | awk '{print $3}' | tr -d '"')
|
||||
+}
|
||||
+
|
||||
+readonly REPOS="qubes-$(get_release)"
|
||||
+
|
||||
+get_qubes_release() {
|
||||
case $BASEBRANCH in
|
||||
|
@ -40,6 +39,8 @@ index c3b8f7a..2d09c31
|
|||
esac
|
||||
}
|
||||
|
||||
+readonly REPOS="qubes-$(get_qubes_release)"
|
||||
+
|
||||
+# hack to support at-root packages
|
||||
+changed_repos() {
|
||||
+ echo "."
|
||||
|
@ -48,7 +49,7 @@ index c3b8f7a..2d09c31
|
|||
build_aport() {
|
||||
local repo="$1" aport="$2"
|
||||
cd "$APORTSDIR/$repo/$aport"
|
||||
@@ -101,11 +112,11 @@ set_repositories_for() {
|
||||
@@ -101,11 +113,11 @@ set_repositories_for() {
|
||||
release=$(get_release)
|
||||
for repo in $REPOS; do
|
||||
[ "$repo" = "non-free" ] && continue
|
||||
|
@ -62,7 +63,7 @@ index c3b8f7a..2d09c31
|
|||
doas apk update
|
||||
}
|
||||
|
||||
@@ -118,7 +129,15 @@ apply_offset_limit() {
|
||||
@@ -118,7 +130,15 @@ apply_offset_limit() {
|
||||
}
|
||||
|
||||
setup_system() {
|
||||
|
|
Loading…
Reference in a new issue