diff options
author | Dan McGee <dan@archlinux.org> | 2012-07-28 18:45:15 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-07-28 18:45:15 +0200 |
commit | 280c53eec5661252b5692fa374292c4d421e3bd8 (patch) | |
tree | 8cfc199c6b292e8a1e257fbe35059e8a2b744bc4 /devel/management | |
parent | 4c446e5cf71e6755f87ca08cf851569a2c13614b (diff) | |
download | archweb-280c53eec5661252b5692fa374292c4d421e3bd8.tar.gz archweb-280c53eec5661252b5692fa374292c4d421e3bd8.tar.xz |
reporead: don't use iexact lookup on arch name
We don't do this anywhere else, so we shouldn't do this here either.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/management')
-rw-r--r-- | devel/management/commands/reporead.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index e69691d..aaa9812 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -332,7 +332,7 @@ def update_common(archname, reponame, pkgs, sanity_check=True): transaction.set_dirty() repository = Repo.objects.get(name__iexact=reponame) - architecture = Arch.objects.get(name__iexact=archname) + architecture = Arch.objects.get(name=archname) # no-arg order_by() removes even the default ordering; we don't need it dbpkgs = Package.objects.filter( arch=architecture, repo=repository).order_by() @@ -371,7 +371,7 @@ def db_update(archname, reponame, pkgs, force=False): logger.info('Updating %s (%s)', reponame, archname) dbpkgs = update_common(archname, reponame, pkgs, True) repository = Repo.objects.get(name__iexact=reponame) - architecture = Arch.objects.get(name__iexact=archname) + architecture = Arch.objects.get(name=archname) # This makes our inner loop where we find packages by name *way* more # efficient by not having to go to the database for each package to @@ -538,7 +538,7 @@ def locate_arch(arch): if isinstance(arch, Arch): return arch try: - return Arch.objects.get(name__iexact=arch) + return Arch.objects.get(name=arch) except Arch.DoesNotExist: raise CommandError( 'Specified architecture %s is not currently known.' % arch) |