pystand 2.30__tar.gz → 2.31__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.
- {pystand-2.30/pystand.egg-info → pystand-2.31}/PKG-INFO +1 -1
- {pystand-2.30 → pystand-2.31/pystand.egg-info}/PKG-INFO +1 -1
- {pystand-2.30 → pystand-2.31}/pystand.py +11 -10
- {pystand-2.30 → pystand-2.31}/.gitignore +0 -0
- {pystand-2.30 → pystand-2.31}/README.md +0 -0
- {pystand-2.30 → pystand-2.31}/justfile +0 -0
- {pystand-2.30 → pystand-2.31}/pyproject.toml +0 -0
- {pystand-2.30 → pystand-2.31}/pystand.egg-info/SOURCES.txt +0 -0
- {pystand-2.30 → pystand-2.31}/pystand.egg-info/dependency_links.txt +0 -0
- {pystand-2.30 → pystand-2.31}/pystand.egg-info/entry_points.txt +0 -0
- {pystand-2.30 → pystand-2.31}/pystand.egg-info/requires.txt +0 -0
- {pystand-2.30 → pystand-2.31}/pystand.egg-info/top_level.txt +0 -0
- {pystand-2.30 → pystand-2.31}/setup.cfg +0 -0
|
@@ -574,14 +574,15 @@ def purge_unused_releases(args: Namespace) -> None:
|
|
|
574
574
|
keep = keeplist(args)
|
|
575
575
|
|
|
576
576
|
# Purge any release lists that are no longer used and have expired
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
if
|
|
582
|
-
path.
|
|
583
|
-
|
|
584
|
-
|
|
577
|
+
if args._releases.is_dir():
|
|
578
|
+
now_secs = time.time()
|
|
579
|
+
end_secs = args.purge_days * 86400
|
|
580
|
+
for path in args._releases.iterdir():
|
|
581
|
+
if path.name not in keep:
|
|
582
|
+
if (path.stat().st_mtime + end_secs) < now_secs:
|
|
583
|
+
path.unlink()
|
|
584
|
+
else:
|
|
585
|
+
keep.add(path.name)
|
|
585
586
|
|
|
586
587
|
# Purge any downloads for releases that have expired
|
|
587
588
|
if args._downloads.is_dir():
|
|
@@ -1461,8 +1462,8 @@ class cache_:
|
|
|
1461
1462
|
if args.remove:
|
|
1462
1463
|
if rm_path(args._downloads):
|
|
1463
1464
|
print('Removed download cache.')
|
|
1464
|
-
|
|
1465
|
-
|
|
1465
|
+
if args.file and rm_path(args._releases):
|
|
1466
|
+
print('Removed file lists cache.')
|
|
1466
1467
|
else:
|
|
1467
1468
|
show_cache_size(args._downloads, args)
|
|
1468
1469
|
|
|
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
|