Skip to content

Commit

Permalink
fix: offline iso update (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
gerblesh authored Oct 17, 2023
2 parents 4fb78a8 + ea267e0 commit 986ed9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rpkg.macros
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function ublue_update_version {
if [ "$GITHUB_REF_NAME" = "" ]; then
echo "1.1.0+$(git rev-parse --short HEAD)"
echo "1.1.1+$(git rev-parse --short HEAD)"
else
echo "$GITHUB_REF_NAME"
fi
Expand Down
2 changes: 1 addition & 1 deletion src/ublue_update/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def run_updates(system, system_update_available):
)
log.debug(out.stdout.decode("utf-8"))
log.info("System update complete")
if pending_deployment_check() and system_update_available:
if pending_deployment_check() and system_update_available and dbus_notify:
out = notify(
"System Updater",
"System update complete, pending changes will take effect after reboot. Reboot now?",
Expand Down
3 changes: 3 additions & 0 deletions src/ublue_update/update_checks/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def system_update_check():
protocol = "docker://"
url = current_image[1]

if url == "oci:/var/ublue-os/image":
return True

"""Add protocol if URL doesn't contain it"""
if protocol not in url:
url = protocol + url
Expand Down

0 comments on commit 986ed9a

Please sign in to comment.