summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-08-13Use common functions to print messages, warnings and errorsPierre Schmitz11-126/+134
These functions are copied from makepkg
2010-08-13Check permission before any actionPierre Schmitz5-26/+72
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 Schmitz7-39/+36
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-08Fix typoPierre Schmitz1-1/+1
2010-08-08Use db-functions in create-filelists and sourceballsPierre Schmitz2-58/+25
2010-08-08Source PKGBUILD in subshellsPierre Schmitz5-62/+68
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-08Cleanup db-functionsPierre Schmitz1-55/+60
* fix indention * use consistent output * set vars local
2010-08-08Cleanup cron-jobs/adjust-permissionsPierre Schmitz1-31/+26
2010-08-08Move common function to db-functionsPierre Schmitz10-168/+85
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 Schmitz7-22/+2
2010-08-08Prepare for variable db file compressionPierre Schmitz2-4/+5
2010-08-08Remove BUILDSCRIPT variablePierre Schmitz7-12/+11
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-08Cleanup db-removePierre Schmitz1-18/+5
* There is no need to copy the db into a working dir * cleanup is automatically called on exit
2010-08-08Fix test and add some more checksPierre Schmitz1-4/+5
2010-08-08Reduce verbosityPierre Schmitz5-45/+32
Only inform of errors and processes that might take longer.
2010-08-08add transitions testsPierre Schmitz1-0/+86
Theses tests simulate the case of packages with the old repo layout and the new package pool layout.
2010-08-08fix cleaning of any packages and ignore empty reposPierre Schmitz2-4/+6
2010-08-08add test for ftpdir-cleanupPierre Schmitz2-1/+99
2010-08-08Use package pool instead of $repo/os/any dirsPierre Schmitz3-20/+15
2010-08-08Fix old callPierre Schmitz1-3/+3
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-08-07Simplify tests and add tests for db-movePierre Schmitz2-14/+110
2010-08-07add test for db-removePierre Schmitz2-10/+81
2010-08-07add an initial set of testsPierre Schmitz1-0/+66
2010-08-07add some common functions for our test suitePierre Schmitz1-0/+113
2010-08-07add default makepkg.conf for both archesPierre Schmitz2-0/+230
2010-08-07add a local copy of shunit2Pierre Schmitz1-0/+1116
This is a local copy of shUnit 2.1.5 from http://shunit2.googlecode.com/ License: LGPL
2010-08-07add some sample PKGBUILDsPierre Schmitz6-0/+76
2010-08-07determine correct dir even if config was sourcedPierre Schmitz1-1/+1
2010-08-07Override default config with config.localPierre Schmitz1-0/+3
This is useful for local testing
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-28sourceballs: Added community and community-testing supportEric Bélanger4-6/+16
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-06-20adjust permissions for package poolPierre Schmitz1-2/+12
2010-06-20ftpdir-cleanup: only search for linked packages in actual reposPierre Schmitz1-1/+3
2010-06-20Replace PKGPOOL_DIR by a function callPierre Schmitz4-8/+13
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-06-20add initial .gitignore filePierre Schmitz1-0/+1
2010-05-03Add PKGPOOL_DIR config variableAaron Griffin3-5/+8
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-05-02ftpdir-cleanup: Add clean_pkgs functionAaron Griffin1-4/+14
This should remove files if they are symlinks (pooled packages) and move them to the cleanup dir if not
2010-04-28ftpdir-cleanup: use 'find' for symlink detectionAaron Griffin1-13/+3
This gets rid of a bash loop for link detection
2010-04-28ftpdir-cleanup: Fix cleanup of package poolAaron Griffin1-1/+1
2010-04-28Change ftpdir-cleanup scripts for package poolingAaron Griffin2-10/+40
* The per repo script now simply removes files as they should all be symlinks at this time * The cron job script will do the extra job of checking the global pool. If there are no more symlinks, move the pooled package Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2010-04-28Remove FTP_OS_SUFFIX variableAaron Griffin2-2/+1
This isn't needed and if "os" ever changes, we have bigger changes. Won't save us any time and it's longer to type.
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-11Do not overwrite TMPDIR defined in config20100411Pierre Schmitz1-6/+6
2010-04-11Fail if lock couldn't be obtained; Unlock the repos if ftpdir-cleanup failsPierre Schmitz5-10/+28
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 Schmitz3-7/+4
2010-03-13moving sourceballs-cleanupEric Bélanger1-61/+0