]>
err.no Git - dak/log
Torsten Werner [Wed, 26 Jan 2011 20:21:52 +0000 (21:21 +0100)]
Create, test, and refactor get_suite_version_by_package().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Wed, 26 Jan 2011 20:01:59 +0000 (21:01 +0100)]
Create, test, and refactor get_source_by_package_and_suite().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Wed, 26 Jan 2011 06:15:16 +0000 (07:15 +0100)]
Remove unused function get_binaries_from_source_id().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Wed, 26 Jan 2011 06:14:39 +0000 (07:14 +0100)]
Remove unused function get_binaries_from_name().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Wed, 26 Jan 2011 06:11:09 +0000 (07:11 +0100)]
Remove unused function get_binary_from_id().
It is equivalent to DBBinary.get(binary_id[, session]).
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Tue, 25 Jan 2011 22:38:11 +0000 (23:38 +0100)]
Add workaround for SQLAlchemy 0.5.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Tue, 25 Jan 2011 22:27:54 +0000 (23:27 +0100)]
Test and refactor function add_deb_to_db().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Tue, 25 Jan 2011 20:26:25 +0000 (21:26 +0100)]
Refactor and test class DBBinary.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Tue, 25 Jan 2011 18:57:40 +0000 (19:57 +0100)]
Merge branch 'dbtests' into merge
* Add the ORMObject.get() class method.
* Simplify validation of not NULL constraints.
* Derive more classes from ORMObject.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Tue, 25 Jan 2011 18:54:14 +0000 (19:54 +0100)]
Change base class of Uid to ORMObject.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Tue, 25 Jan 2011 06:32:44 +0000 (07:32 +0100)]
Add the ORMObject.get() class method.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Tue, 25 Jan 2011 06:11:13 +0000 (07:11 +0100)]
Extend ORMObject.validate() to support _id columns.
It won't throw an exception if the numeric _id property is set instead the real
property.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Mon, 24 Jan 2011 22:16:34 +0000 (23:16 +0100)]
Make validation of DBSource less strong.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Mon, 24 Jan 2011 19:56:43 +0000 (20:56 +0100)]
Simplify validation of not NULL constraints.
And derive more classes from ORMObject.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Mon, 24 Jan 2011 17:55:01 +0000 (18:55 +0100)]
Merge branch 'dbtests' into merge
* Add classes Validator and ValidatorTestCase.
* Add new class ORMObject and ORMObjectTestCase.
* Refactor the fixture setup in PackageTestCase.
* Improve queries in dbconn.py using with_parent().
* Drop class SrcAssociation.
* Create, test, and improve get_suite_version().
* Create, test, and improve get_newest_source().
* Test and improve package_to_suite().
* Test and Improve source_exists().
* Remove some useless session.flush() calls.
* Refactor add_dsc_to_db().
* Test function add_dsc_to_db()
* Test and refactor get_suites_source_in().
* Refactor get_source_in_suite().
* Test the DBSource and Suite relation.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Mon, 24 Jan 2011 06:51:30 +0000 (07:51 +0100)]
ValidatorTestCase: test before_update, too.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 23 Jan 2011 23:00:53 +0000 (00:00 +0100)]
Add PoolFile.validate().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 23 Jan 2011 22:29:06 +0000 (23:29 +0100)]
Add classes Validator and ValidatorTestCase.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 23 Jan 2011 21:25:20 +0000 (22:25 +0100)]
Fix documentation.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 23 Jan 2011 20:53:13 +0000 (21:53 +0100)]
JSON: support python 2.5, too.
The json module is available in version 2.6 but we have simplejson in 2.5.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 23 Jan 2011 20:17:47 +0000 (21:17 +0100)]
Add new class ORMObject and ORMObjectTestCase.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 23 Jan 2011 11:18:53 +0000 (12:18 +0100)]
Refactor the fixture setup in PackageTestCase.
The test data gets setup in method setUp() now.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sat, 22 Jan 2011 22:58:38 +0000 (23:58 +0100)]
Improve queries in dbconn.py using with_parent().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sat, 22 Jan 2011 22:00:32 +0000 (23:00 +0100)]
Merge branch 'master' into dbtests
Torsten Werner [Sat, 22 Jan 2011 21:53:49 +0000 (22:53 +0100)]
Drop class SrcAssociation.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sat, 22 Jan 2011 21:52:13 +0000 (22:52 +0100)]
Create, test, and improve get_suite_version().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sat, 22 Jan 2011 20:41:57 +0000 (21:41 +0100)]
Create, test, and improve get_newest_source().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sat, 22 Jan 2011 19:47:57 +0000 (20:47 +0100)]
Test and improve package_to_suite().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sat, 22 Jan 2011 18:53:59 +0000 (19:53 +0100)]
Test and Improve source_exists().
Signed-off-by: Torsten Werner <twerner@debian.org>
Joerg Jaspert [Sat, 22 Jan 2011 13:07:09 +0000 (14:07 +0100)]
Merge remote branch 'drkranz/make-changelog' into merge
* drkranz/make-changelog:
make-changelog: refactorize code to improve performances
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Torsten Werner [Sat, 22 Jan 2011 13:03:33 +0000 (14:03 +0100)]
Merge branch 'master' into dbtests
Torsten Werner [Sat, 22 Jan 2011 12:49:29 +0000 (13:49 +0100)]
Remove some useless session.flush() calls.
We are using sqlalchemy's autoflush mode.
Signed-off-by: Torsten Werner <twerner@debian.org>
Joerg Jaspert [Sat, 22 Jan 2011 12:44:59 +0000 (13:44 +0100)]
Merge branch 'master' of ssh://franck.debian.org/srv/ftp.debian.org/git/dak
* 'master' of ssh://franck.debian.org/srv/ftp.debian.org/git/dak:
Simplify DebVersionTestCase.
Refactor PackageTestCase.test_sources().
Refactor PackageTestCase.
Make a bidirectional relation DBSource - PoolFile.
Improve test_maintainers().
Refactor maintainer tests.
Joerg Jaspert [Sat, 22 Jan 2011 12:44:52 +0000 (13:44 +0100)]
Update stable point release readme
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Torsten Werner [Sat, 22 Jan 2011 12:43:51 +0000 (13:43 +0100)]
Test suite_name in test_upload()
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sat, 22 Jan 2011 12:35:18 +0000 (13:35 +0100)]
Test function add_dsc_to_db()
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sat, 22 Jan 2011 10:51:29 +0000 (11:51 +0100)]
Refactor add_dsc_to_db().
Signed-off-by: Torsten Werner <twerner@debian.org>
Luca Falavigna [Sat, 22 Jan 2011 10:53:58 +0000 (10:53 +0000)]
make-changelog: refactorize code to improve performances
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
Torsten Werner [Sat, 22 Jan 2011 10:48:19 +0000 (11:48 +0100)]
Test and refactor get_suites_source_in().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sat, 22 Jan 2011 10:34:05 +0000 (11:34 +0100)]
Refactor get_source_in_suite().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Fri, 21 Jan 2011 23:05:36 +0000 (00:05 +0100)]
Test the DBSource and Suite relation.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Fri, 21 Jan 2011 22:05:24 +0000 (23:05 +0100)]
Merge branch 'dbtests' of ftp-master.debian.org:public_html/dak into dbtests
Torsten Werner [Fri, 21 Jan 2011 22:05:10 +0000 (23:05 +0100)]
Merge branch 'master' into dbtests
Torsten Werner [Fri, 21 Jan 2011 14:09:22 +0000 (15:09 +0100)]
Simplify DebVersionTestCase.
Signed-off-by: Torsten Werner <twerner@debian.org>
Joerg Jaspert [Thu, 20 Jan 2011 22:17:04 +0000 (23:17 +0100)]
win32-loader autobyhand
fix dak.conf by closing }; the entry.
use proper set statements
use scriptvars and later on $ftpdir instead of writing full path
drop error() function, only used once.
proper indentation
change target path to build a win32-loader/$SUITE tree so different suites can have different installer for win32
remove unused trap - and call to undefined function cleanup.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Joerg Jaspert [Thu, 20 Jan 2011 22:13:37 +0000 (23:13 +0100)]
use set statements for options to the shell
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Torsten Werner [Thu, 20 Jan 2011 21:58:08 +0000 (22:58 +0100)]
Refactor PackageTestCase.test_sources().
Signed-off-by: Torsten Werner <twerner@debian.org>
Joerg Jaspert [Thu, 20 Jan 2011 21:57:47 +0000 (22:57 +0100)]
Merge remote branch 'odyx/win32-loader-autobyhand' into merge
* odyx/win32-loader-autobyhand:
Add a win32-loader autobyhand script.
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Torsten Werner [Thu, 20 Jan 2011 21:36:05 +0000 (22:36 +0100)]
Refactor PackageTestCase.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Thu, 20 Jan 2011 21:08:35 +0000 (22:08 +0100)]
Make a bidirectional relation DBSource - PoolFile.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Thu, 20 Jan 2011 19:48:38 +0000 (20:48 +0100)]
Improve test_maintainers().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Thu, 20 Jan 2011 19:31:23 +0000 (20:31 +0100)]
Refactor maintainer tests.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Thu, 20 Jan 2011 17:27:52 +0000 (18:27 +0100)]
Merge branch 'master' of ssh://ftp-master.debian.org/srv/ftp.debian.org/git/dak
Torsten Werner [Wed, 19 Jan 2011 21:11:58 +0000 (22:11 +0100)]
Extend PackageTestCase.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Wed, 19 Jan 2011 19:31:53 +0000 (20:31 +0100)]
Remove function get_poolfile_by_name().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Wed, 19 Jan 2011 19:31:23 +0000 (20:31 +0100)]
Test PoolFile.fullpath.
Signed-off-by: Torsten Werner <twerner@debian.org>
Joerg Jaspert [Wed, 19 Jan 2011 18:49:08 +0000 (19:49 +0100)]
Merge branch 'master' of ssh://franck.debian.org/srv/ftp.debian.org/git/dak
* 'master' of ssh://franck.debian.org/srv/ftp.debian.org/git/dak:
Extend test_poolfiles().
Add a test for PoolFile and Location.
Mark Location.archive_type as obsolete.
Carefully add a backref from PoolFile to Location.
Add an incomplete test for Maintainer.
Make relation Maintainer - DBSource bidirectional.
TimestampTestCase: replace sql string by func.now.
DBSource: drop property srcassociations.
Joerg Jaspert [Wed, 19 Jan 2011 18:49:00 +0000 (19:49 +0100)]
Ensure symlinks get copied as symlinks, not their contents
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Torsten Werner [Wed, 19 Jan 2011 09:35:03 +0000 (10:35 +0100)]
Extend test_poolfiles().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Wed, 19 Jan 2011 07:39:42 +0000 (08:39 +0100)]
Add a test for PoolFile and Location.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Tue, 18 Jan 2011 21:11:01 +0000 (22:11 +0100)]
Mark Location.archive_type as obsolete.
It needs to be removed through a DB upgrade.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Tue, 18 Jan 2011 21:05:03 +0000 (22:05 +0100)]
Carefully add a backref from PoolFile to Location.
Using lazy='dynamic' makes sure that property Location.files is not a very huge
list but a query object that can be iterated or .filter()-ed.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Tue, 18 Jan 2011 20:12:33 +0000 (21:12 +0100)]
Add an incomplete test for Maintainer.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Tue, 18 Jan 2011 17:55:06 +0000 (18:55 +0100)]
Merge branch 'master' into dbtests
Didier Raboud [Tue, 18 Jan 2011 12:30:37 +0000 (13:30 +0100)]
Add a win32-loader autobyhand script.
Luca Falavigna [Tue, 18 Jan 2011 08:19:37 +0000 (08:19 +0000)]
make-changelog: do not move to next element on unpack error
This leads to not correctly remove temporary directory, which
is not available for the next packages to be unpacked.
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
Luca Falavigna [Tue, 18 Jan 2011 08:18:06 +0000 (08:18 +0000)]
make-changelog: only consider latest sources in suites
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
Torsten Werner [Tue, 18 Jan 2011 05:51:38 +0000 (06:51 +0100)]
Make relation Maintainer - DBSource bidirectional.
The following is possible now (returns lists of DBSource objects):
- somesrc.maintainer.maintains_sources
- somesrc.changedby.changed_sources
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Tue, 18 Jan 2011 04:48:44 +0000 (05:48 +0100)]
TimestampTestCase: replace sql string by func.now.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Mon, 17 Jan 2011 19:18:57 +0000 (20:18 +0100)]
DBSource: drop property srcassociations.
... in favour of new property suites.
Signed-off-by: Torsten Werner <twerner@debian.org>
Luca Falavigna [Mon, 17 Jan 2011 17:04:45 +0000 (17:04 +0000)]
make-changelog: print dpkg-source output on fail
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
Torsten Werner [Sun, 16 Jan 2011 23:58:14 +0000 (00:58 +0100)]
Drop 'source' and 'all' from 'dak admin s-a list'.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 23:54:17 +0000 (00:54 +0100)]
Fix sort order of property Suite.architectures.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 23:41:04 +0000 (00:41 +0100)]
Fix dak admin s-a list.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 23:34:36 +0000 (00:34 +0100)]
Optimize performance of running multiple DB tests.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 23:19:24 +0000 (00:19 +0100)]
Make admin.py more robust.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 22:49:05 +0000 (23:49 +0100)]
Suppress warnings in the most suitable files.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 21:02:19 +0000 (22:02 +0100)]
Make generate-filelist more readable.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 20:47:00 +0000 (21:47 +0100)]
Remove class SuiteAchitecture completely.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 20:38:39 +0000 (21:38 +0100)]
Unicode fixes in generate-filelist
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 20:17:58 +0000 (21:17 +0100)]
Remove SuiteArchitecture from admin.py.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 19:58:44 +0000 (20:58 +0100)]
Remove function get_suite_architecture().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 17:22:00 +0000 (18:22 +0100)]
Refactor get_architecture_suites().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 17:19:44 +0000 (18:19 +0100)]
Add test for get_architecture_suites().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 17:09:55 +0000 (18:09 +0100)]
Define sort order for Architecture Suite relationship.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 16:33:53 +0000 (17:33 +0100)]
Refactor get_suite_architectures().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 15:34:32 +0000 (16:34 +0100)]
Add a test for get_suite_architectures().
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 15:06:01 +0000 (16:06 +0100)]
Improve relation between Suite and Architecture.
Define a many to many relation between Suite and Architecture which makes
SuiteArchitecture obsolete.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sun, 16 Jan 2011 10:24:08 +0000 (11:24 +0100)]
Merge branch 'master' into dbtests
Torsten Werner [Sun, 16 Jan 2011 10:19:12 +0000 (11:19 +0100)]
Handle (and re-raise) IOError in generate-releases.
Print the full filename before re-raising the Exception to aid debugging.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sat, 15 Jan 2011 23:26:22 +0000 (00:26 +0100)]
Start new PackageTestCase.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sat, 15 Jan 2011 17:04:14 +0000 (18:04 +0100)]
Make TimestampTestCase work with sqlalchemy 0.5.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sat, 15 Jan 2011 16:57:23 +0000 (17:57 +0100)]
Add new TimestampTestCase.
* Add triggers to test database.
* Add test case for columns created and modified.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Sat, 15 Jan 2011 10:37:40 +0000 (11:37 +0100)]
Add more Fingerprint tests.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Fri, 14 Jan 2011 23:10:42 +0000 (00:10 +0100)]
Add a doc string to FingerprintTestCase.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Fri, 14 Jan 2011 23:04:51 +0000 (00:04 +0100)]
Improve database tests.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Fri, 14 Jan 2011 22:40:18 +0000 (23:40 +0100)]
Merge master branch.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Fri, 14 Jan 2011 22:38:04 +0000 (23:38 +0100)]
Merge branch 'master' into dbtests
Torsten Werner [Fri, 14 Jan 2011 22:35:33 +0000 (23:35 +0100)]
Really fix the DebVersion type in dbconn.py.
Signed-off-by: Torsten Werner <twerner@debian.org>
Torsten Werner [Fri, 14 Jan 2011 22:33:36 +0000 (23:33 +0100)]
Add another fix to DebVersion.
Signed-off-by: Torsten Werner <twerner@debian.org>