From e32c920368a2c42b0907d0cb733abe9dc9687892 Mon Sep 17 00:00:00 2001 From: Ellwood Zwovic Date: Thu, 20 Jul 2017 18:06:42 -0700 Subject: [PATCH] Don't leave trailing slashes on the end of directory names --- bpkg-repogen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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