summaryrefslogtreecommitdiffstats
path: root/db-update
AgeCommit message (Collapse)AuthorFilesLines
2015-05-27remove unused functionFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-27bugfixFlorian Pritz1-2/+6
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-27fix db-updateFlorian Pritz1-5/+11
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-27cleanupFlorian Pritz1-1/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-27use global variable to track history changes and commit everything at onceFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-27add historical git repo; fix db-moveFlorian Pritz1-3/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-05-27somewhat workingFlorian Pritz1-26/+7
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-11-01disallow packages without a valid PACKAGERDave Reisner1-0/+3
Shame. Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2013-01-31db-update: Ignore forgeign staging packages20130131Pierre Schmitz1-1/+8
2012-10-03Use pacman-key to check signatures as it now uses a correct exit value20121003Pierre Schmitz1-1/+1
2012-04-29Source the config before the functions as the latter references the formerPierre Schmitz1-1/+1
2011-12-19Avoid calls to basenamePierre Schmitz1-7/+7
2011-12-18Validate package signatures on db-updatePierre Schmitz1-0/+3
2011-04-02Add signature files to update/move/remove targetsRémy Oudompheng1-0/+7
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-01-15Move repo manipulation code into common functionsPierre Schmitz1-5/+1
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-12-02db-update: Fail if a set of split packages is incompletePierre Schmitz1-0/+3
2010-09-11Use local config instead of guessing by hostnamePierre Schmitz1-2/+2
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-05Check if package exists in any other repository on update20100906Pierre Schmitz1-2/+2
This also checks if the sam package exists within the old package layout (without package pool)
2010-09-02Set correct group after touching the db filePierre Schmitz1-0/+1
* 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-24db-update: Make sure there are no links in the staging directoryPierre Schmitz1-0/+3
2010-08-17Add additional checks when reading PKGBUILDsPierre Schmitz1-1/+1
If reading from a PKGBUILD fails stop immediatly. Also put out more usefull error messages.
2010-08-17minor fix to error messageAllan McRae1-1/+1
Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-08-17Don't try to update no packagePierre Schmitz1-4/+6
Check if there are packages to update for given architecure. Previously db-update quit when only one arch of a package was available.
2010-08-15Lock repos before checkingPierre Schmitz1-18/+14
2010-08-15Use common names for reposPierre Schmitz1-2/+2
2010-08-14Rewrite of db-updatePierre Schmitz1-169/+58
* db-update now updates all repos with packages in its staging dirs * sanity checks are performed before any repo is touched * improved performance * less code; easier to maintain
2010-08-13Simplify check for existing packagesPierre Schmitz1-10/+5
2010-08-13removed useless statementsPierre Schmitz1-9/+1
2010-08-13Remove check which was already covered by check_repo_permissionPierre Schmitz1-7/+0
2010-08-13Abort if package already exists in repoPierre Schmitz1-4/+2
Don't try to be smart and remove packages from the staging dir without asking.
2010-08-13Use common functions to print messages, warnings and errorsPierre Schmitz1-25/+23
These functions are copied from makepkg
2010-08-13Check permission before any actionPierre Schmitz1-9/+1
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-7/+5
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-20/+22
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/+0
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-2/+0
2010-08-08Prepare for variable db file compressionPierre Schmitz1-0/+1
2010-08-08Remove BUILDSCRIPT variablePierre Schmitz1-4/+4
There is no need to have a variable for things like PKGBUILD that are very unlikely to ever change.
2010-08-08Remove check for old staging dirsPierre Schmitz1-20/+0
devtools take care of this anyway
2010-08-08Reduce verbosityPierre Schmitz1-16/+7
Only inform of errors and processes that might take longer.
2010-08-08Use package pool instead of $repo/os/any dirsPierre Schmitz1-11/+5
2010-06-29don't fail if any package already existsPierre Schmitz1-5/+9
2010-06-29don't mix db files of different archesPierre Schmitz1-5/+6
2010-06-20Replace PKGPOOL_DIR by a function callPierre Schmitz1-4/+4
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 Griffin1-4/+4
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 Griffin1-7/+19
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 Schmitz1-1/+1
2010-03-31fix permissions of incoming packages20100410Andrea Scarpino1-0/+2
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-03-31don't publish *.old filesPierre Schmitz1-1/+1
2010-02-21Accept any *.pkg.tar.* package file namePierre Schmitz1-6/+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>