summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-11-05Use ctypes module to access alpm_pkg_vercmp() instead of the C module.Rémy Oudompheng
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-11-05Add simple tests for db-repo-add and db-repo-removePierre Schmitz
2011-11-05db-repo-add: At least check if the package to be added is available in the ↵Pierre Schmitz
correct directory
2011-11-05Add test for moving multiple packages at oncePierre Schmitz
2011-11-05Split package database test functions from check* functionsPierre Schmitz
This way we can check consitency of databases independent from a svn repo
2011-11-05check svn entry for any packagesPierre Schmitz
2011-11-05db-remove: support removing multiple packages at oncePierre Schmitz
2011-11-05Adjust tests to use new db-remove interfacePierre Schmitz
2011-11-05db-repo-{add, remove}: allow specifying multiple packagesDan McGee
This allows invoking these commands for more than one package at a time which is incredibly more efficient as the database doesn't need to be locked, unpacked, modified, changed, and unlocked for every single passed package name or file if you have more than one. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-05db-*: always handle pkgname/pkgbase/pkgfile argument lastDan McGee
This matches what we do in db-update, and makes the most sense if we want to expand these commands to take multiple arguments at the same time. Especially in the case of db-repo-add and db-repo-remove, these wrapper commands should be no more limiting than repo-add and repo-remove which always allow multiple arguments and are more efficient that way. This patch simply reorders the arguments; a later patch will support multiple pkgname/pkgbase/pkgfile arguments on the command line. Although this does break backwards compatibility and requires some changing of muscle memory, I think it is a worthwhile change to make as the functionality of these commands becomes more powerful and the order of arguments becomes the same in all of them. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-30Require a signature file for new packagesPierre Schmitz
2011-10-14Rebuilt alpm.so for pacman 4.0 soname bumpPierre Schmitz
2011-08-13update shunit to 2.1.6Pierre Schmitz
2011-08-13db-move: Fix svn rm callPierre Schmitz
2011-08-13db-move: remove one svn commit per packageDan McGee
Precondition: trunk/ directory never has any subdirectories. This is true across our entire svn-packages repository, although I did not check svn-community. The following command was used: find -mindepth 3 -type d ! -wholename '*/.svn*' -wholename *trunk* This should really help a variety of things- reduce the number of commits, reduce the number of emails to arch-commits, make mass package moves faster, etc. The entire dbscripts test suite still passes after this change. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-07-24db-remove: remove package if not in svnFlorian Pritz
We know what the user wants us to do (remove a package from the repo and svn) so if it's not in svn it should still be removed from the db. Having to use a seperate tool (db-repo-remove) is confusing. Signed-off-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-07-24Add epoch support to integrity check cron jobEric Bélanger
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-07-24Fix test for use with recent namcap releasesPierre Schmitz
2011-07-24Use /tmp instead of /dev/shm for temporary filesPierre Schmitz
2011-04-02Add simple checks for handling signed packagesPierre Schmitz
In addition to this dbscripts wont accept unsigned pacakges when REQUIRE_SIGNATURE is set to true. Note: At this point no signature verification is performed at all.
2011-04-02Add signature files to update/move/remove targetsRémy Oudompheng
Signature files are optional and the previous behaviour is unchanged when signatures files do not exist. Signed-off-by: Rémy Oudompheng <remy@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2011-04-01Recompiled alpm python module against pacman 3.5Pierre Schmitz
2011-03-26Use repo-add to create the files database for each repoPierre Schmitz
2011-03-26Adjust test for latest devtools; Be less generic with package extensionPierre Schmitz
2011-03-23Add support for packages which use the epoch variablePierre Schmitz
2011-01-30Keeping old packages for a month should be long enoughPierre Schmitz
2011-01-30Try to remove a package even if it is no longer in svnPierre Schmitz
2011-01-30Make sure to only remove package files from the cleanup dirsPierre Schmitz
2011-01-27test: add testUpdateSameAnyPackageToSameRepositoryPierre Schmitz
2011-01-15Move repo manipulation code into common functionsPierre Schmitz
repo-add and repo-remove is now indirectly called by arch_repo_add/remove. This simplifies future extensions like incremental file list creations. See FS#11302
2011-01-08archweb update: source virtualenv if it existsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-12-18Remove old files from the cleanup dirsPierre Schmitz
2010-12-18Touch old packages after moving them to the cleanup dirsPierre Schmitz
This updates the mtime of those files and will help us to remove them later.
2010-12-09check_packages.py: remove obsolete klibc workaroundPierre Schmitz
2010-12-09Call integrity-check with specific repo list for each architecturePierre Schmitz
2010-12-09repo_lock: check if repo is locked by repo-add or repo-removePierre Schmitz
2010-12-05Only emit a warning when a repository does not exist.Rémy Oudompheng
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-12-05Add support for the [multilib] repo.Rémy Oudompheng
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-12-05Style changes: add parentheses around print "...".Rémy Oudompheng
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-12-05Style changes: remove usage of the 'has_key' method.Rémy Oudompheng
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-12-02db-update: Fail if a set of split packages is incompletePierre Schmitz
2010-11-27Fix test: copy target of symlinksPierre Schmitz
2010-11-25create-filelists: Improve performance by reading package list from db ↵Pierre Schmitz
instead from fs
2010-11-25update-web-db: Lock db and scriptPierre Schmitz
* usage of db-functions * Lock the db and work on a copy to avoid long lock times * Lock the script itself to avoid multiple calls * Adjust to coding style to other dbscripts
2010-11-25sourceballs: be nicePierre Schmitz
2010-11-25Rewrote create-filelistsPierre Schmitz
* use correct locking of the repos * added test case * removes file lists of deleted packages * add compression independent symlink to files db
2010-11-25sourceballs no longer depends on ftpdir-cleanup being runPierre Schmitz
2010-11-25Add FILESEXT variable for use in create-filelistsPierre Schmitz
2010-11-25Split tests into several filesPierre Schmitz
* tests can be run seperatly * runTest will run all tests that have the x bit set
2010-11-25Provide more real test packagesPierre Schmitz
* Use devtools instead of plain makepkg * This is a preparation for some more advanced test cases.