File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ def __init__(self) -> None:
235235 self .progress_lock = Lock ()
236236 self .progress = None
237237 self .staged = ""
238+ self .cached_version = ""
238239 self .emit = None
239240
240241 self .branches = {}
@@ -353,6 +354,7 @@ def _init(self, conf: Config):
353354 cached_img = cached .get ("image" , {}).get ("image" , "" ) if cached else ""
354355 if "/" in cached_img :
355356 cached_img = cached_img [cached_img .rfind ("/" ) + 1 :]
357+ self .cached_version = cached_version
356358
357359 if self .checked_update :
358360 conf [f"updates.bootc.update" ] = _ ("No update available" )
@@ -481,7 +483,7 @@ def update(self, conf: Config):
481483 self .proc , self .progress = run_command_threaded_progress (
482484 BOOTC_UPDATE_CMD ,
483485 self .emit ,
484- self .staged or "" ,
486+ self .cached_version or self . branch_name or "" ,
485487 self .progress_lock ,
486488 )
487489 else :
You can’t perform that action at this time.
0 commit comments