summaryrefslogtreecommitdiffstats
path: root/db-move
AgeCommit message (Collapse)AuthorFilesLines
2012-06-10Remove support for packages that are not in the package poolPierre Schmitz1-5/+0
2012-06-10db-move: commit all arches at onceFlorian Pritz1-1/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2012-04-29Source the config before the functions as the latter references the formerPierre Schmitz1-1/+1
2011-12-19Avoid calls to basenamePierre Schmitz1-3/+3
2011-08-13db-move: Fix svn rm callPierre Schmitz1-4/+4
2011-08-13db-move: remove one svn commit per packageDan McGee1-3/+10
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-04-02Add signature files to update/move/remove targetsRémy Oudompheng1-0/+3
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-03-23Add support for packages which use the epoch variablePierre Schmitz1-2/+2
2011-01-15Move repo manipulation code into common functionsPierre Schmitz1-7/+2
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
2010-09-11Use local config instead of guessing by hostnamePierre Schmitz1-4/+4
Using the hostname to decide which repos to use is not releiable and hard to test. Instead use config.local to configure these. config files for sigurd and gerolde were added which can be copied or symlinked to config.local on the specific host.
2010-09-02Set correct group after touching the db filePierre Schmitz1-0/+3
* When writing the db file ensure that it has write permission of the group which owns the parent directory. * This should make the adjust-permissions cron job obsolete.
2010-08-17Add additional checks when reading PKGBUILDsPierre Schmitz1-2/+11
If reading from a PKGBUILD fails stop immediatly. Also put out more usefull error messages.
2010-08-15Lock repos before checkingPierre Schmitz1-6/+19
2010-08-15Move packages of all arches within one transactionPierre Schmitz1-67/+76
db-move does no longer need a specific architecture. It will move all architecures of a given package at once. testing2x has been rewritten to respect these changes and testing2x64 is no longer needed.
2010-08-14Prepare support for multiple packages in db-movePierre Schmitz1-39/+48
2010-08-14Don't hardcode supported architectures in db-movePierre Schmitz1-1/+1
2010-08-13Use common functions to print messages, warnings and errorsPierre Schmitz1-6/+4
These functions are copied from makepkg
2010-08-13Check permission before any actionPierre Schmitz1-0/+5
Added a function to check if user has permission to alter the repos and db files.
2010-08-10Use more consitent naming for package poolPierre Schmitz1-4/+4
There are no longer architecture-specific subdirs and the structure was switch to this: ftp └── pool ├── community └── packages packages contains all packages from core, extra and testing; this naming is in sync with the svn repo naming: svn-packages and svn-community
2010-08-08Source PKGBUILD in subshellsPierre Schmitz1-23/+25
This patch sources a PKGBUILD in a subshells instead of directly. This way we don't polute our scope or overwrite our vars which might lead to unexpected behavior.
2010-08-08Move common function to db-functionsPierre Schmitz1-22/+3
db-functions now sets an individual $WORKDIR and implements trap functinos that remove locks on exit or error. There are new functions to lock and unlock the running script. misc-scripts/ftpdir-cleanup was renamed to ftpdir-cleanup-repo as the cron-job had the same name. Script names have to be unique when using db-functions.
2010-08-08use common workdirPierre Schmitz1-6/+0
2010-08-08Remove BUILDSCRIPT variablePierre Schmitz1-1/+1
There is no need to have a variable for things like PKGBUILD that are very unlikely to ever change.
2010-08-08Reduce verbosityPierre Schmitz1-7/+8
Only inform of errors and processes that might take longer.
2010-08-08Use package pool instead of $repo/os/any dirsPierre Schmitz1-9/+8
2010-08-07Rewrite db-movePierre Schmitz1-60/+37
* Cleanup code * create symlinks instead of copies * Moving split packages is now (more) atomic * Move old packages to pool if needed
2010-04-11Fail if lock couldn't be obtained; Unlock the repos if ftpdir-cleanup failsPierre Schmitz1-2/+2
2010-03-31don't publish *.old filesPierre Schmitz1-4/+2
2010-02-21Accept any *.pkg.tar.* package file namePierre Schmitz1-5/+6
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-14Be more careful with config file inclusionDan McGee1-0/+1
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-18Fix an error in db-move due to DBEXT commitAaron Griffin1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-18Remove dependence on makepkg.confAaron Griffin1-4/+0
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-18Replace DB_COMPRESSION with DBEXT in the configAaron Griffin1-9/+8
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 McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-07-22remove support for different svn reposPierre Schmitz1-6/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21db-move: reduce usage of loopsPierre Schmitz1-15/+10
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21Add support for split packages to db-movePierre Schmitz1-24/+36
All split packages are treated as unit and can only be moved together. For split packages the pkgbase value has to be used to find the corresponding entry in the svn repository. Note: different architecures (e.g. any) is not supported by makepkg. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21any support: use relative symlinksAaron Griffin1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-14fix syntax errorPierre Schmitz1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-20'any' architecture support for db-move, db-removeAbhishek Dasgupta1-20/+34
Also: changed empty variable '$ftpdir' in db-remove to '$ftppath/$architecture'
2009-03-11Add per-repo SVN configsAaron Griffin1-1/+6
This could be useful if we move community to a separate SVN repo Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-12Quiet down repo-add just a bitAaron Griffin1-2/+2
This assumes the -q flag patch is accepted for pacman 8) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-02Cleanup missing db file logicAaron Griffin1-9/+4
Do not touch missing db files. Additionally, no need to call db-remove if the db file doesn't exist Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-23Remove 'copy_helper' as chmodding is failAaron Griffin1-3/+3
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-22Fix a variable overwrite when sourcing PKGBUILDsAaron Griffin1-12/+12
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-21Clear traps on cleanupAaron Griffin1-0/+1
This prevents us from trying to remove the lockfile twice, and calling cleanup multiple times Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Move everything to /srv to support new server confAaron Griffin1-1/+1
Additionally, make TMPDIR configurable so we can move that Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-12Move as much as we can out to a config fileAaron Griffin1-6/+3
This should allow us to move FTP and SVN placement around Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-09Remove an erroneous '1' signal trap for cleanup() funcAaron Griffin1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-10-21Add copy_helper function to ensure correct permissionsAaron Griffin1-3/+3
This will force all files copied back and forth to have 0664 permissions so that we can attempt to do away with this permission adjusting cron job Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>