* you swap like C, not used and not needed _yet_.
This commit is contained in:
@@ -54,15 +54,6 @@ class RepoDB(object):
|
|||||||
l = self.list()
|
l = self.list()
|
||||||
return l[ix]
|
return l[ix]
|
||||||
|
|
||||||
def swap(self, x, y):
|
|
||||||
def proc(txn):
|
|
||||||
l = self.d.get("order", txn)
|
|
||||||
t = l[x]
|
|
||||||
l[x] = l[y]
|
|
||||||
l[y] = t
|
|
||||||
self.d.put("order", l, txn)
|
|
||||||
self.d.txn_proc(proc, txn)
|
|
||||||
|
|
||||||
def has_repo(self, name):
|
def has_repo(self, name):
|
||||||
name = str(name)
|
name = str(name)
|
||||||
return self.d.has_key("repo-" + name)
|
return self.d.has_key("repo-" + name)
|
||||||
|
|||||||
Reference in New Issue
Block a user