Skip to content

Commit

Permalink
record current maintainers when building
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Jun 28, 2024
1 parent 7c22beb commit ef508b9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ Docs
* [lilac.py API](https://lilac.readthedocs.io/en/latest/api.html)
* [Setup and run your own](https://lilac.readthedocs.io/en/latest/)

Update
----

### 2024-06-28

if database is in use, run the following SQL to update:

```sql

alter table lilac.pkglog add column maintainers jsonb;
```


License
-------

Expand Down
2 changes: 2 additions & 0 deletions lilac
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ def build_it(
cputime = memory = None
rs = [r.to_dict() for r in build_reasons[pkg]]
with db.get_session() as s:
maintainers = repo.lilacinfos[pkg].maintainers
p = db.PkgLog(
pkgbase = pkg,
nv_version = newver,
Expand All @@ -465,6 +466,7 @@ def build_it(
memory = memory,
msg = msg,
build_reasons = rs,
maintainers = maintainers,
)
s.add(p)
db.mark_pkg_as(s, pkg, 'done')
Expand Down
3 changes: 2 additions & 1 deletion scripts/dbsetup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ create table pkglog (
cputime int,
memory bigint,
msg text,
build_reasons jsonb
build_reasons jsonb,
maintainers jsonb
);

create index pkglog_ts_idx on pkglog (ts);
Expand Down

0 comments on commit ef508b9

Please sign in to comment.