summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-08-01 03:35:50 +0200
committerDan McGee <dan@archlinux.org>2012-08-04 22:11:27 +0200
commit1f2466fffceafebfaca34e3ed2d34de6b622768b (patch)
treeb5749e7bb13e756325e585b8bc0e442762a0d222
parent4c02b11cd6c53e122e1c919b64e28646960c5eda (diff)
downloadarchweb-1f2466fffceafebfaca34e3ed2d34de6b622768b.tar.gz
archweb-1f2466fffceafebfaca34e3ed2d34de6b622768b.tar.xz
reporead: import make and check depends
We don't have these in the database yet, but future verisons of repo-add will put this information in the sync databases. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--devel/management/commands/reporead.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index a3bf3e0..8b55b09 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -80,8 +80,9 @@ class RepoPackage(object):
bare = ( 'name', 'base', 'arch', 'filename',
'md5sum', 'sha256sum', 'url', 'packager' )
number = ( 'csize', 'isize' )
- collections = ( 'depends', 'optdepends', 'conflicts',
- 'provides', 'replaces', 'groups', 'license', 'files' )
+ collections = ( 'depends', 'optdepends', 'makedepends', 'checkdepends',
+ 'conflicts', 'provides', 'replaces', 'groups', 'license',
+ 'files' )
version_re = re.compile(r'^((\d+):)?(.+)-([^-]+)$')
@@ -258,6 +259,8 @@ def populate_pkg(dbpkg, repopkg, force=False, timestamp=None):
dbpkg.depends.all().delete()
deps = [create_depend(dbpkg, y) for y in repopkg.depends]
deps += [create_depend(dbpkg, y, 'O') for y in repopkg.optdepends]
+ deps += [create_depend(dbpkg, y, 'M') for y in repopkg.makedepends]
+ deps += [create_depend(dbpkg, y, 'C') for y in repopkg.checkdepends]
batched_bulk_create(Depend, deps)
dbpkg.conflicts.all().delete()