diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2007-10-18 07:31:47 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2007-10-18 07:31:47 +0000 |
commit | dac2e4342d76467408b7e65783909558b4afcd17 (patch) | |
tree | b788005769f0ca65d6ec73d6975264cdfaecbdea /dbgenerator | |
parent | The pagerss link gets a page-specific title. (diff) | |
download | packages-3-dac2e4342d76467408b7e65783909558b4afcd17.tar.gz packages-3-dac2e4342d76467408b7e65783909558b4afcd17.tar.bz2 packages-3-dac2e4342d76467408b7e65783909558b4afcd17.zip |
Avoid duplicating the arches list.
Diffstat (limited to 'dbgenerator')
-rw-r--r-- | dbgenerator/database.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbgenerator/database.py b/dbgenerator/database.py index 7c31d11..259e659 100644 --- a/dbgenerator/database.py +++ b/dbgenerator/database.py @@ -5,6 +5,7 @@ import os, sys from lrucache import LRUCache +from etc.const_data import ConstData class SQLPackageDatabase(object): """we have to store our stuff somewhere @@ -13,7 +14,7 @@ class SQLPackageDatabase(object): at least self.cursor""" # This should match /usr/portage/profiles/arch.list - arches = frozenset(['alpha', 'amd64', 'arm', 'hppa', 'ia64', 'm68k', 'mips', 'ppc', 'ppc64', 's390', 'sh', 'sparc', 'sparc-fbsd', 'x86', 'x86-fbsd']) + arches = frozenset(ConstData.arches) # If you change the database structure below, you should increment this number schema_version = 59 |