summaryrefslogtreecommitdiffstats
path: root/devel/management/commands/reporead.py
diff options
context:
space:
mode:
Diffstat (limited to 'devel/management/commands/reporead.py')
-rw-r--r--devel/management/commands/reporead.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index 51c73c0..df29a8a 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -283,7 +283,10 @@ def populate_files(dbpkg, repopkg, force=False):
len(repopkg.files), dbpkg.pkgname)
pkg_files = []
for f in repopkg.files:
- dirname, filename = f.rsplit('/', 1)
+ if '/' in f:
+ dirname, filename = f.rsplit('/', 1)
+ else:
+ dirname, filename = '', f
if filename == '':
filename = None
pkgfile = PackageFile(pkg=dbpkg,