Skip to content

Commit

Permalink
system/sboui: Update Script.
Browse files Browse the repository at this point in the history
Signed-off-by: Pouria Rezaei <[email protected]>
  • Loading branch information
RSKYS committed Sep 10, 2024
1 parent ebcbbac commit 2500a53
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
40 changes: 27 additions & 13 deletions system/sboui/req.diff
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,33 @@ index 75eed41..6a35668 100644

# Location to clone git repository
REPO_DIR=/var/lib/sboui/repo
diff --git a/etc/sboui.conf b/etc/sboui.conf
index 2a67553..7f9c5be 100644
--- a/etc/sboui.conf
+++ b/etc/sboui.conf
@@ -18,7 +18,7 @@ package_manager = "built-in"
# reinstall_cmd = "sbopkg -B -i"

## Tag at end of package name identifying repository
-# repo_tag = "_SBo"
+repo_tag = "red"

## Additional CLOs and environment variables when invoking package manager
# install_clos = ""
diff --git a/src/BuildListItem.cpp b/src/BuildListItem.cpp
index 49fe0fd..13e869e 100644
--- a/src/BuildListItem.cpp
+++ b/src/BuildListItem.cpp
@@ -75,6 +75,9 @@ bool BuildListItem::upgradable() const

if ( (getBoolProp("installed")) && (! getBoolProp("blacklisted")) )
{
+ if (available_version == "0")
+ available_version = installed_version;
+
if (installed_version != available_version)
{
if (! differsByKernel(installed_version, available_version))
diff --git a/src/sboui-backend.in b/src/sboui-backend.in
index 6dff854..fa936d1 100644
--- a/src/sboui-backend.in
Expand All @@ -39,16 +66,3 @@ index 6dff854..fa936d1 100644

# Check if package was built successfully. Note version string can contain
# trailing stuff like the kernel version.
diff --git a/etc/sboui.conf b/etc/sboui.conf
index 2a67553..7f9c5be 100644
--- a/etc/sboui.conf
+++ b/etc/sboui.conf
@@ -18,7 +18,7 @@ package_manager = "built-in"
# reinstall_cmd = "sbopkg -B -i"

## Tag at end of package name identifying repository
-# repo_tag = "_SBo"
+repo_tag = "red"

## Additional CLOs and environment variables when invoking package manager
# install_clos = ""
2 changes: 1 addition & 1 deletion system/sboui/sboui.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=sboui
VERSION=${VERSION:-2.3}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}

Expand Down

0 comments on commit 2500a53

Please sign in to comment.