From: "Lars R. Damerow" <[email protected]>

Before this change, the list of files generated for an empty repo would be
[''] instead of []. Now '' gets removed from the list and importing srpms into
an empty repo works properly.
---
 src/pyrpkg/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/pyrpkg/__init__.py b/src/pyrpkg/__init__.py
index 9260894..2908c22 100644
--- a/src/pyrpkg/__init__.py
+++ b/src/pyrpkg/__init__.py
@@ -1295,6 +1295,8 @@ class Commands(object):
 
         # Get a list of files we're currently tracking
         ourfiles = self.repo.git.ls_files().split('\n')
+        if ourfiles == ['']:
+            ourfiles = []
         # Trim out sources and .gitignore
         for file in ('.gitignore', 'sources', ''):
             try:
-- 
1.8.3.1

--
buildsys mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Reply via email to