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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pystand
3
- Version: 2.30
3
+ Version: 2.31
4
4
  Summary: Install Python versions from python-build-standalone project
5
5
  Author-email: Mark Blakeney <mark.blakeney@bullet-systems.net>
6
6
  License-Expression: GPL-3.0-or-later
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pystand
3
- Version: 2.30
3
+ Version: 2.31
4
4
  Summary: Install Python versions from python-build-standalone project
5
5
  Author-email: Mark Blakeney <mark.blakeney@bullet-systems.net>
6
6
  License-Expression: GPL-3.0-or-later
@@ -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
- now_secs = time.time()
578
- end_secs = args.purge_days * 86400
579
- for path in args._releases.iterdir():
580
- if path.name not in keep:
581
- if (path.stat().st_mtime + end_secs) < now_secs:
582
- path.unlink()
583
- else:
584
- keep.add(path.name)
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
- if args.file and rm_path(args._releases):
1465
- print('Removed file lists cache.')
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