diff --git a/old/removepkg.hs b/old/removepkg.hs index 815a5ab..dcf0ce5 100644 --- a/old/removepkg.hs +++ b/old/removepkg.hs @@ -11,7 +11,7 @@ import Foreign.C.Types (CTime(..)) -- pkgdir = "/home/repo" pkgdir = "/mnt/data/repo" -- pkgdir = "/home/lilydjwg/tmpfs/repo" -exts = [".pkg.tar.xz", ".pkg.tar.xz.sig"] +exts = [".pkg.tar.xz", ".pkg.tar.xz.sig", ".pkg.tar.zst", ".pkg.tar.zst.sig"] olderThan t f = do st <- getFileStatus f diff --git a/repocleaner b/repocleaner index a8f4e22..11d86f9 100755 --- a/repocleaner +++ b/repocleaner @@ -65,7 +65,7 @@ def clean(path: Path, all_packages: Set[str]) -> None: if f.name[0] == '.': continue - if f.name.endswith('.pkg.tar.xz'): + if f.name.endswith(('.pkg.tar.xz', '.pkg.tar.zst')): pkg = archpkg.PkgNameInfo.parseFilename(f.name) if pkg.name.endswith('-debug'): name = pkg.name[:-6] diff --git a/touch_latest b/touch_latest index 0571d3f..a008afa 100755 --- a/touch_latest +++ b/touch_latest @@ -38,7 +38,7 @@ def main(dir, reponame, *, dry_run=True): if f.is_symlink(): continue - if not f.name.endswith('.pkg.tar.xz'): + if not f.name.endswith(('.pkg.tar.xz', '.pkg.tar.zst')): continue pkg = ArchPkgInfo.parseFilename(f.name)