diff --git a/bpkg-repogen b/bpkg-repogen index b0b4361..749820c 100755 --- a/bpkg-repogen +++ b/bpkg-repogen @@ -53,7 +53,7 @@ def filelist_from_zip(zippath: Path) -> list: # Get all names which have no path separators (root level files) # or have a single path separator at the end (root level directories). if len(f.rstrip('/').split('/')) == 1: - rootlist.append(f) + rootlist.append(f.rstrip('/')) return rootlist