]>
git.ipfire.org Git - people/jschlag/pbs.git/blob - src/buildservice/arches.py
20 return _priorities
[arch
]
24 class Arches(base
.Object
):
26 res
= self
.db
.query("SELECT name FROM arches \
27 WHERE NOT name = ANY(%s)", ["noarch", "src"])
29 return iter(sorted((a
.name
for a
in res
), key
=priority
))
31 def exists(self
, name
):
32 # noarch doesn't really exist
36 res
= self
.db
.get("SELECT 1 FROM arches \
37 WHERE name = %s", name
)
44 def expand(self
, arches
):
49 for arch
in arches
.split():