Verified Commit 394120aa authored by Max Rees's avatar Max Rees

Add commit tracking: backend

parent c692152b
......@@ -32,6 +32,7 @@ _Pkg = collections.namedtuple(
......@@ -46,7 +47,7 @@ class Pkg(_Pkg, DbModel):
return cls(
None, pkg.repo,,
pkg.description, pkg.url, pkg.license,
origin, pkg.maintainer, None, None,
origin, pkg.maintainer, pkg.commit, None, None,
def get_origin(self, db):
......@@ -9,6 +9,7 @@ CREATE TABLE packages (
license TEXT,
origin INTEGER REFERENCES packages(id),
maintainer TEXT,
revision TEXT,
updated INTEGER
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment