diff options
author | Dan McGee <dan@archlinux.org> | 2011-02-27 17:52:59 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-02-27 17:52:59 +0100 |
commit | 02e9c4b8f3f005af2a39a1927dd6d693fa4238f0 (patch) | |
tree | 0161958dd931ce6d6381a728f3686338fe6b50d8 | |
parent | 93bca8b0ed79afc30f6237e13dacaf32ed8cd4b3 (diff) | |
download | archweb-02e9c4b8f3f005af2a39a1927dd6d693fa4238f0.tar.gz archweb-02e9c4b8f3f005af2a39a1927dd6d693fa4238f0.tar.xz |
reporead: small cleanups
-rw-r--r-- | devel/management/commands/reporead.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index bda3bd6..09e4855 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -391,16 +391,12 @@ def parse_repo(repopath): logger.error("File does not have the proper extension") raise Exception("File does not have the proper extension") - repodb = tarfile.open(repopath,"r") - ## assuming well formed tar, with dir first then files after - ## repo-add enforces this + repodb = tarfile.open(repopath, "r") logger.debug("Starting package parsing") dbfiles = ('desc', 'depends', 'files') pkgs = {} for tarinfo in repodb.getmembers(): - if tarinfo.isdir(): - continue - elif tarinfo.isreg(): + if tarinfo.isreg(): pkgid, fname = os.path.split(tarinfo.name) if fname not in dbfiles: continue |