vappman 2.1.1__tar.gz → 2.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vappman-2.1.1 → vappman-2.1.3}/PKG-INFO +1 -1
- {vappman-2.1.1 → vappman-2.1.3}/pyproject.toml +1 -1
- {vappman-2.1.1 → vappman-2.1.3}/vappman/AppmanVars.py +1 -1
- {vappman-2.1.1 → vappman-2.1.3}/vappman/main.py +9 -9
- {vappman-2.1.1 → vappman-2.1.3}/.gitignore +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/LICENSE +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/README.md +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/images/screen-2024-06-23-v0.7.mkv +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/images/vappman-2025-12-28.12-48.gif +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/images/vappman-with-filter.png +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/runner +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/tests/example_init_order.py +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/tests/test_abut.py +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/tests/test_init_order.py +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/tests/test_scope_subtraction.py +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/tests/test_scoped_keys.py +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/tests/test_scoped_keys_unit.py +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/vappman/AppimageDoctor.py +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/vappman/AppmanLauncher.py +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/vappman/CommandRunner.py +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/vappman/PersistentState.py +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/vappman/Prerequisites.py +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/vappman/VappmanListCache.py +0 -0
- {vappman-2.1.1 → vappman-2.1.3}/vappman/__init__.py +0 -0
|
@@ -10,7 +10,7 @@ class AppLocation(NamedTuple):
|
|
|
10
10
|
usr_path: Path # Path to user storage dir or None
|
|
11
11
|
|
|
12
12
|
class AppmanVars:
|
|
13
|
-
"""
|
|
13
|
+
""" Encapsulates the places / functions we need to know
|
|
14
14
|
about to observe, manage am/appman. """
|
|
15
15
|
def __init__(self):
|
|
16
16
|
self.system_app_dir = Path("/opt")
|
|
@@ -386,7 +386,7 @@ class Vappman(Prerequisites):
|
|
|
386
386
|
print(f'{self.has_am=}')
|
|
387
387
|
print(f'{self.has_appman=}')
|
|
388
388
|
self.disk_state = PersistentState('vappman',
|
|
389
|
-
max_backups=1, install_opts='', database='
|
|
389
|
+
max_backups=1, install_opts='', database='am')
|
|
390
390
|
self.appman = AppmanVars()
|
|
391
391
|
self.launcher = AppmanLauncher(self.appman)
|
|
392
392
|
|
|
@@ -481,9 +481,9 @@ class Vappman(Prerequisites):
|
|
|
481
481
|
1st word.
|
|
482
482
|
"""
|
|
483
483
|
def parse_app_list(lines):
|
|
484
|
-
nonlocal
|
|
484
|
+
nonlocal switch_to_system_mode
|
|
485
485
|
installs, installs_by_appname = {}, {}
|
|
486
|
-
local = False
|
|
486
|
+
local = True if self.has_appman else False
|
|
487
487
|
has_db_column = False
|
|
488
488
|
|
|
489
489
|
# Process line by line
|
|
@@ -492,7 +492,7 @@ class Vappman(Prerequisites):
|
|
|
492
492
|
for line in lines:
|
|
493
493
|
line = line.strip()
|
|
494
494
|
# Determine to reset location (Global vs Local)
|
|
495
|
-
if 'HAVE INSTALLED' in line:
|
|
495
|
+
if not self.has_appman and 'HAVE INSTALLED' in line:
|
|
496
496
|
local = bool('LOCAL' in line)
|
|
497
497
|
|
|
498
498
|
# Check column headers to see if DB column is present
|
|
@@ -529,7 +529,7 @@ class Vappman(Prerequisites):
|
|
|
529
529
|
# Store as a SimpleNamespace for dot-notation access
|
|
530
530
|
ns = installs.get((name, db), None)
|
|
531
531
|
if ns: # we have both user and system apps
|
|
532
|
-
if
|
|
532
|
+
if switch_to_system_mode and local:
|
|
533
533
|
ns.version=version
|
|
534
534
|
ns.where += where
|
|
535
535
|
else:
|
|
@@ -547,12 +547,12 @@ class Vappman(Prerequisites):
|
|
|
547
547
|
command = ['appman' if self.has_appman else 'am']
|
|
548
548
|
command += cmd.split()
|
|
549
549
|
output_key = ' '.join(command)
|
|
550
|
-
|
|
550
|
+
switch_to_system_mode = not self.has_appman and self.appman.is_user_mode()
|
|
551
551
|
|
|
552
552
|
output = self.saved_outputs.get(output_key, None)
|
|
553
553
|
if repull or not output:
|
|
554
554
|
if 'files' in cmd.split():
|
|
555
|
-
if
|
|
555
|
+
if switch_to_system_mode is True:
|
|
556
556
|
# temp: promote to system mode to get all apps
|
|
557
557
|
self.appman.set_system_mode_cheat(True)
|
|
558
558
|
|
|
@@ -563,11 +563,11 @@ class Vappman(Prerequisites):
|
|
|
563
563
|
stderr=subprocess.PIPE, check=False)
|
|
564
564
|
except Exception as exc:
|
|
565
565
|
ConsoleWindow.stop_curses()
|
|
566
|
-
if
|
|
566
|
+
if switch_to_system_mode is True:
|
|
567
567
|
self.appman.set_system_mode_cheat(False)
|
|
568
568
|
print(f'FAILED: {command}: {exc}')
|
|
569
569
|
sys.exit(1)
|
|
570
|
-
if
|
|
570
|
+
if switch_to_system_mode is True:
|
|
571
571
|
self.appman.set_system_mode_cheat(False)
|
|
572
572
|
|
|
573
573
|
if result.returncode != 0:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|