summaryrefslogtreecommitdiff
path: root/db-update
AgeCommit message (Collapse)Author
2010-08-08Reduce verbosityPierre Schmitz
Only inform of errors and processes that might take longer.
2010-08-08Use package pool instead of $repo/os/any dirsPierre Schmitz
2010-06-29don't fail if any package already existsPierre Schmitz
2010-06-29don't mix db files of different archesPierre Schmitz
2010-06-20Replace PKGPOOL_DIR by a function callPierre Schmitz
The package pool dir depends on the host; so we solve this similar to get_repos_for_host() Note: There is no "os" subdir for the package pool.
2010-05-03Add PKGPOOL_DIR config variableAaron Griffin
This is a relative var, descendent from FTP_BASE. We do this because we also need a relative path to the package pool dir
2010-04-28db-update: Use a master package pool and symlinksAaron Griffin
This should save lots of transfer time with the mirrors :) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2010-04-11Fail if lock couldn't be obtained; Unlock the repos if ftpdir-cleanup failsPierre Schmitz
2010-03-31fix permissions of incoming packagesAndrea Scarpino
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-03-31don't publish *.old filesPierre Schmitz
2010-02-21Accept any *.pkg.tar.* package file namePierre Schmitz
With this patch packages with different compressions are accepted. It is ensured that one cannot have the same package with different compression extensions. The new functions getpkgfile{,s} are used to sanitize globed filenames. Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2009-09-18Collapse duplicate loops for staging removalAaron Griffin
Add 'any' to the items looped over in the ${ARCHES[@]} loop Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-09-18Remove pkg from $stagedir if already in FTP repoFrancois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-09-13Ensure you don't update DBs on the wrong serverDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-09-13Be more careful with config file inclusionDan McGee
We can't really do the basedir magic from db-functions as it is just being sourced and is not the currently executing script. Although a bit repetitive, it is a lot safer to just include the config file everywhere. Noticed this when trying to run the latest available scripts on sigurd. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-08-17Remove dependence on makepkg.confAaron Griffin
Removed the need for makepkg.conf * Killed off CARCH * Added PKGEXT to the config file * Remove source_makepkg function * Source config file where makepkg.conf was needed Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-17Replace DB_COMPRESSION with DBEXT in the configAaron Griffin
DBEXT contains the full extension for the db files (.db.tar.gz) and is recorded in the config file Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-16Add DB_COMPRESSION var to all scripts that need itDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-07-22remove support for different svn reposPierre Schmitz
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21db-update: Move some steps inside an 'if'Francois Charette
[Aaron: keep WORKDIR creation outside the loop, as its removed at the end] Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21db-update: Fix final repo_unlockAaron Griffin
Because we lock/unlock in a loop, simply remove the cleanup trap at the end of the process, and manually clean up the work dir Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21remove trailing slash from ftppath[_any]Francois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20any support: use relative symlinksAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20Minor syntactic improvements in db-updateFrancois Charette
* also added error msg for repo_lock in db-functions [Aaron: keep quotes around $WORKDIR] Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20simple syntactic improvementsFrancois Charette
[Aaron: Don't remove quotes around $WORKDIR] Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20Fix final "cleanup" to avoid spurious error msgFrancois Charette
* When calling cleanup at the end of db-update, the function repo_unlock is called, but the repo-locks have already been unlocked! So we get a spurious error message. This commit replaces "cleanup" by "rm -rf $WORKDIR". Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-14use pkgbase to get pkgbuild in db-updatePierre Schmitz
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-14remove redefined functionPierre Schmitz
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-12fixed filename in creation of symlinksFrancois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-12create $WORKDIR before cding to itFrancois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-12Check whether packages exist in build dirs before attempting to copy themFrancois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-06db-update: Add some total counts to outputAaron Griffin
Original-work-by: François Charette <francois@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-06db-update: Replace || with -o in if statementsFrançois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-06db-update: remove 'touch' of empty db fileAaron Griffin
repo-add handles this on its own Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-06db-update: Add if check before 'any' removalFrançois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-06db-update: Use proper variable for WORKDIRFrançois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-11Moved arch-independent processing out of the loop.Abhishek Dasgupta
Also fixes the bug in the previous commit, in which the arch-independent packages would be deleted from the staging directory after only one iteration.
2009-03-11db-update: Add support for 'any' archAbhishek Dasgupta
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-11Add per-repo SVN configsAaron Griffin
This could be useful if we move community to a separate SVN repo Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-11Make db-update parse all architecutresAaron Griffin
ARCHES is defined in config. db-update should now loop over all arches on each run and update whatever is in the staging dir. Remove the db-*64 scripts due to this Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-01-14Merge branch 'master' of file:///srv/projects/git/dbscriptsAaron Griffin
Conflicts: db-update Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-29Remove an if check for old staging 'add' dirsAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-16Only remove packages that were successfully addedAaron Griffin
This prevents some errors where packages where removed from the staging dir when they shouldn't have been. Original-idea-by: Pierre Schmitz <pierre@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-12Quiet down repo-add just a bitAaron Griffin
This assumes the -q flag patch is accepted for pacman 8) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-01Do not touch db file if it doesn't existAaron Griffin
repo-add works fine if no db file exists Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-23Only copy DB file from repo if we have pkgsAaron Griffin
We were copying our DB file from the repo to our temp build dir all the time. We should only do this if there are packages to add Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-23Remove some harmless error messagesAaron Griffin
If add/del dirs exist, we try to fix it all up and it can error quite loudly Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-22Remove 'copy_helper' as chmodding is failAaron Griffin
The chmod doesn't work unless the user is the owner of the file Resorting to umask changes here Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Fix a variable overwrite when sourcing PKGBUILDsAaron Griffin
The local variable 'arch' was being overwritten when we source PKGBUILDs. Change it to _arch wherever we deal with PKGBUILD files Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Remove /del dir usage from db-updateAaron Griffin
db-remove is superior and requiring package files is dumb. Kill off this dir and clean up some code, yay! Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>