summaryrefslogtreecommitdiffstats
path: root/bin/list-queue
diff options
context:
space:
mode:
authorFlorian Weimer <fw@deneb.enyo.de>2011-04-24 14:25:18 +0000
committerFlorian Weimer <fw@deneb.enyo.de>2011-04-24 14:25:18 +0000
commitbd7faa374cd2374b7708346495f5922d1bc4e3b9 (patch)
tree44c948bdd91a9e73c02a4a72d42df1f1bc125967 /bin/list-queue
parent7fa0aa34bc8530f12e95673d403865f125b860ac (diff)
debian_support.inspect_deb(): remove
bin/list-queue uses the parser in python-debian instead. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@16577 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/list-queue')
-rwxr-xr-xbin/list-queue7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/list-queue b/bin/list-queue
index 167e9afe34..200a19c5ff 100755
--- a/bin/list-queue
+++ b/bin/list-queue
@@ -44,13 +44,14 @@ setup_path()
import sqlite3
import json
+from debian.debfile import DebFile
import debian_support
def createdb():
cache = os.path.expanduser("~/.cache")
if not os.path.isdir(cache):
os.mkdir(cache)
- dbfile = os.path.join(cache, "secure-testing_list-debs.sqlite")
+ dbfile = os.path.join(cache, "secure-testing_list-queue.sqlite")
db = sqlite3.connect(dbfile, isolation_level="IMMEDIATE")
db.execute("PRAGMA page_size = 4096")
db.execute("PRAGMA journal_mode = WAL")
@@ -105,7 +106,9 @@ def updatepackages(db):
((path,) for path, _ in need_update))
def do_update():
for (path, stat) in need_update:
- pkg = debian_support.inspect_deb(path)
+ deb = DebFile(path)
+ pkg = debian_support.BinaryPackage()
+ pkg.load822(deb.debcontrol())
indb[path] = stat + (pkg,)
yield (path,) + stat + pkg.astuple()
db.executemany("INSERT INTO package VALUES (?, ?, ?, ?, ?, ?, ?, ?)",

© 2014-2024 Faster IT GmbH | imprint | privacy policy