mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-10-14 19:27:09 -04:00
Stores: an unreadable overlay folder reads as no overlay
droiddeck-store-launch's overlay check raised on a folder it may not read (the CI runner's /root); it now treats that as not installed, as it must for any launch.
This commit is contained in:
1 parent
dd2b2b08c3
commit
cd85eb1624
1 file changed
+4
-1
@@ -138,7 +138,10 @@ def set_value(reg, key, name, value, now=None):
|
||||
def overlay_version(overlay_dir=OVERLAY_DIR):
|
||||
"""The overlay build the app placed, or None when it is not there."""
|
||||
d = Path(overlay_dir)
|
||||
if not (d / OVERLAY_DLL).is_file():
|
||||
try:
|
||||
if not (d / OVERLAY_DLL).is_file():
|
||||
return None
|
||||
except OSError: # unreadable is the same as not there
|
||||
return None
|
||||
try:
|
||||
return (d / "droiddeck-version").read_text().strip() or "unknown"
|
||||
|
||||
Reference in new issue
Block a user