Joachim Breitner [Mon, 27 Jul 2009 22:24:55 +0000 (00:24 +0200)]
Simple test-suite for wanna-build
This file runs wanna-build in a clean environment to make sure, certain
features work as expected.
At the moment it
* Uploads a source
* Take the build
* Marks it as uploaded
* Uploads a source with build-depends
- Makes sure the package is marked Dep-Wait
* Uploads a new version of the dependency
- Makes sure the Dep-Wait is cleared
Joachim Breitner [Fri, 24 Jul 2009 12:57:35 +0000 (14:57 +0200)]
Create valid dctrl-like output
Instead of adding the dots for empty lines when reading the input, and
adding the extra space when outputting, save the data as is and create
the correct format when outputting. This makes sure that multi-line-data
passed to -m is also represented correctly.
Joachim Breitner [Fri, 24 Jul 2009 00:41:09 +0000 (02:41 +0200)]
Implement transactions
New parameters:
--start-transaction: Creates a copy of the state of the database, for
use with --transactional. This overrides any previous uncommited
transaction. Should only be used after --lock-for
--commit-transaction: Atomically moves the copy back to the main, thus
commiting the changes
--transactional: Flag to indicate that we want to work on the copy
Joachim Breitner [Thu, 23 Jul 2009 23:45:19 +0000 (01:45 +0200)]
Implement locking for other process
Locking for another process means that a longer running process (most likely
wb) wants to do several steps at once, and manages the locks.
Added parameters are:
--lock-for PID: Locks the database for the process with this pid
--unlock-for PID: Unlocks the database for the process with this pid
--act-on-behalve-of PID: Ignores the log (if it is held by this pid)
Philipp Kern [Thu, 18 Dec 2008 19:04:29 +0000 (19:04 +0000)]
trigger.security: added
trigger.security will be called from security-master to update the
wanna-build database for security. This was previously done on
security-master itself.
Philipp Kern [Thu, 18 Dec 2008 17:42:40 +0000 (17:42 +0000)]
introduce libtrigger.sh and put the architectures into it
Furthermore copy curl_index from trigger.daily into it so that it can
be used by other triggers. libtrigger.sh is included by both
trigger.daily and trigger.often.