diff options
author | Dan McGee <dan@archlinux.org> | 2012-07-05 17:25:40 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-07-05 17:25:40 +0200 |
commit | 9d91cad678133e97345111fab2c103fcda9b9f28 (patch) | |
tree | 02a3272373d47e2628e57b7ea20edf65f29c6691 /devel | |
parent | daf011b67a338f26ead8058a9f9caedfe251c62c (diff) | |
download | archweb-9d91cad678133e97345111fab2c103fcda9b9f28.tar.gz archweb-9d91cad678133e97345111fab2c103fcda9b9f28.tar.xz |
reporead: handle files in root directory properly
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/management/commands/reporead.py | 5 |
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, |