1
0
forked from ALHP/ALHP.GO
Commit Graph

175 Commits

Author SHA1 Message Date
22d265e7f1 changes to db schema; more housekeeping work 2021-11-04 13:01:18 +01:00
6e0fec9cac separate srcinfo gen into func 2021-10-24 06:10:55 +02:00
ce9686a495 purge delayed packages as a way to prevent non-buildable packages staying in repo in an outdated state 2021-09-12 17:40:47 +02:00
1cf45cedb0 added cli option for check interval 2021-09-12 17:35:45 +02:00
7bfa9abeb7 added --journal to log to journal instead do stdout 2021-09-12 17:25:33 +02:00
f6a2561c95 added purging of failed packages again 2021-09-07 12:49:01 +02:00
eb5df207a2 try locking alpm db 2021-08-31 21:13:22 +02:00
6f8d0cd68e set hash on build failed 2021-08-31 05:08:50 +02:00
f6d8db73f6 fixed wrong repo getting passed to where clause, resulting in no hashes being found and used 2021-08-30 17:26:34 +02:00
449b772442 re-enable journalhook
need a cmdline switch for this, it's on the TODO :)
2021-08-30 11:05:11 +02:00
b78b09aeaa Hash each PKGBUILD and compare before parsing, fixes #25
This will speed things up significantly. See #25 for more information and discussion.
2021-08-30 11:02:06 +02:00
e835a54745 skip packages with unresolvable dependencies 2021-08-26 12:59:23 +02:00
a80b5d4c56 skip packages with a multiple PKGBUILD-dependency 2021-08-26 12:21:32 +02:00
5c754f8867 set buildtime when start building 2021-08-26 12:21:32 +02:00
31022f2384 avoid nil reference 2021-07-29 20:45:45 +02:00
959ac2d689 improved logging 2021-07-29 17:47:29 +02:00
816ce81207 release alpm handle 2021-07-29 00:45:45 +02:00
156ac4c2cb reinit alpm after pacman sync 2021-07-29 00:43:22 +02:00
db02be5caa moved some const to utils.go 2021-07-28 02:31:53 +02:00
ff011edd4d improved logging to return what package is missing on mirror 2021-07-27 18:51:35 +02:00
1ee2cc1ea8 handle broken dependencies 2021-07-27 18:42:37 +02:00
a433b8144c added skipreason if waiting on mirror 2021-07-27 16:48:19 +02:00
af6e8cfa74 removed alpm lock 2021-07-27 16:24:30 +02:00
e28d85b10d Added pre-build dependency version check (#32)
Fixes #15.

Uses ALPM's `satisfies` to resolve dependencies and then compares resolved dependency from local sync database with svn2git's version.

Reviewed-on: https://git.harting.dev/anonfunc/ALHP.GO/pulls/32
Co-authored-by: Giovanni Harting <539@idlegandalf.com>
Co-committed-by: Giovanni Harting <539@idlegandalf.com>
2021-07-27 02:43:30 +02:00
9fc18e7867 prepare for better stats 2021-07-26 16:38:12 +02:00
6001f1b847 move skipped package output to debug 2021-07-22 23:55:06 +02:00
9515072dc8 moved hardcoded classes to config, renamed status to packages to better reflect their content 2021-07-22 23:41:24 +02:00
c6b3d02cb1 remove redundant git clean error handling 2021-07-22 12:32:27 +02:00
a76f7c24ee delete repo-version after purging it from repo 2021-07-18 23:33:16 +02:00
4b74fe7999 added navbar and footer to statuspage; fixed not able to create database 2021-07-14 19:21:58 +02:00
193b1ee20c do not repo-remove packages without files present 2021-07-13 20:01:42 +02:00
cd05ac9f9b display time in utc 2021-07-13 19:51:09 +02:00
6517a96885 sort pkgbase alphabetically 2021-07-13 19:34:06 +02:00
ff323b41bd add version to BuildPackage to keep track of successfully build package version 2021-07-13 19:18:35 +02:00
b0cfe7b205 Add database backend (SQLite) (#26)
Add database with background information for each pkgbase, for possible future use.
A static status page is generated from the db.

Currently includes:

* sub-packages
* build-time
* build-duration
* status (failed, latest, skipped, queued, building, build)
* version (both from PKGBUILD and repo)
* last checked

Database is currently only used for informational purposes. Goal is to refactor many (expensive) methods to use the db instead of searching/parsing files.

Reviewed-on: https://git.harting.dev/anonfunc/ALHP.GO/pulls/26
Co-authored-by: Giovanni Harting <539@idlegandalf.com>
Co-committed-by: Giovanni Harting <539@idlegandalf.com>
2021-07-13 18:07:29 +02:00
899f48c181 increase purge channel buffer 2021-07-09 20:49:42 +02:00
a006f1b286 init maps first 2021-07-09 20:44:37 +02:00
003c15a9ee added one thread per repo for repo actions (add/remove packages) 2021-07-09 20:37:00 +02:00
9a0dc87659 don't wait forever if package to purge was not found 2021-07-09 14:50:25 +02:00
e124e7f359 dont mix blacklisted/any packages with haskell packages 2021-07-09 14:48:27 +02:00
293f1752a8 skip haskell packages for now until dependency trees are a thing #11 2021-07-09 14:46:50 +02:00
51bf7b7924 prevent repo-remove from getting SIGKILLed because main process exited 2021-07-09 14:12:43 +02:00
a2819587f1 remove backgroundCmd, try to SIGTERM building processes without setting pgid explicitly 2021-07-08 16:30:03 +02:00
eb6f4b965a handle git clean fail on resync 2021-07-08 05:09:02 +02:00
30b308c553 fix not counting build packages as eligible 2021-07-04 13:57:49 +02:00
60469a15a6 more commenting; fixed color in stdout 2021-07-03 22:28:08 +02:00
c4e34434a1 fetch updates after git pulls, open failed files with o_sync 2021-07-03 22:13:39 +02:00
eacb58efbc more formatting 2021-07-03 22:05:44 +02:00
7c28490157 avoid division by zero 2021-07-03 22:02:40 +02:00
f116d07311 use floats for percentage 2021-07-01 22:25:57 +02:00