Skip to content

Commit

Permalink
support for .pkg.tar.zst packages
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Oct 16, 2019
1 parent 980f845 commit 77e72be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion old/removepkg.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion repocleaner
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion touch_latest
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 77e72be

Please sign in to comment.