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

Add commit tracking: backend

parent c692152b
......@@ -32,6 +32,7 @@ _Pkg = collections.namedtuple(
"license",
"origin",
"maintainer",
"revision",
"size",
"updated",
),
......@@ -46,7 +47,7 @@ class Pkg(_Pkg, DbModel):
return cls(
None, pkg.repo, pkg.name,
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,
size INTEGER,
updated INTEGER
);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment