summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-09-13Add new get_repos_for_host() functionDan McGee
And use it. This allows us to have server-specific behavior in our scripts without further patching, and it also allows us to simplify some of our scripts a fair amount. 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-09-08Added sourceballs.force entriesAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-09-01sourceballs: explicitly add the 'any' archAaron Griffin
Loop over all arches AND the 'any' arch. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-28add deplist to hierarchy problemsXavier Chantry
This should help a lot figuring out whether a given hierarchy problem is fixable (if it doesn't require moving too many deps). example output core/crda depends on extra/python-m2crypto (27 extra (make)deps to pull) core/iputils depends on extra/opensp (29 extra (make)deps to pull) core/iputils depends on extra/libxslt (25 extra (make)deps to pull) core/iputils depends on extra/docbook-xsl (27 extra (make)deps to pull) core/udev depends on extra/gperf (0 extra (make)deps to pull) core/udev depends on extra/libxslt (25 extra (make)deps to pull) core/e2fsprogs depends on extra/bc (0 extra (make)deps to pull) core/sqlite3 depends on extra/tcl (0 extra (make)deps to pull) core/ca-certificates depends on extra/ruby (25 extra (make)deps to pull) the actual deps are only displayed when there are less than 10. Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-28check_packages : add support for split packages.Xavier Chantry
I just found a way to support split packages, by using $(type package_${pkg}), parsing that output and running eval on the relevant lines. This is a bit ugly, and while it works fine on my machine and my current abs tree, I cannot guarantee this code is bug free :) Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-25Quiet sourceball output when license is skippedAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-25Add SRCEXT to configAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-18Fix arch parameter handling in db-removeEric Bélanger
db-remove use the arch variable to handle the arch parameter passed to the script. As the arch variable is already used in PKGBUILD, this variable conflict cause unwanted behaviour. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-18Replace pkgname with pkgbase, for split packagesAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-18Use db-functions file everywhereAaron Griffin
This source the config file and gets us functions such as getpkgname which were duplicated elsewhere Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-18More removal of DB_COMPRESSION from cron jobsAaron Griffin
Remove dependance on makepkg.conf Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-18More makepkg.conf removal - prefer toplevel configAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-18Remove find-dupes script (unused)Aaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-18Variable rename fix: SVN_PATH -> SVNREPOEric Bélanger
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-17Replace a string compare with a -f checkAaron Griffin
No real reason, this is just easier to understand, and checks like this should be the norm. If file does not exist, continue Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-17Fix an error in db-move due to DBEXT commitAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
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-17Uncomment BUILDSCRIPT in the config fileAaron Griffin
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-08-16Add DB_COMPRESSION='gz', as this has been removed from makepkg.confThomas Bächler
2009-08-16Make ftpdir-cleanup NOT delete all packages if databas extraction failsThomas Bächler
2009-08-16Avoid confusing messages and potential problems when no packages are presentThomas Bächler
If no packages are present in the repository, a message like this will be generated, and the corresponding mv command will be issued. Prevent this by checking if *$arch$PKGEXT equals "*$arch$PKGEXT": Scan complete for core (i686) at /srv/ftp/core/os/i686 The following files are in the repo but not the db They will be moved to '/srv/package-cleanup' *i686.pkg.tar.gz
2009-08-03Add db-communityAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-03Remove community from stock ftpdir-cleanupAaron Griffin
community repo is cleaned up on a different machine Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-22ftpdir-cleanup: Loop over arches for 'any' linksAaron Griffin
Remove the hardcoded i686/x86_64 and loop over the ARCHES array in the config file, checking for valid symlinks. If none are found, remove the 'any' package Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-22ftpdir-cleanup: Minimize outputAaron Griffin
Clean up some output so when we do nothing, we get no output This is preferred as the mailer will simply not send a mail in this case. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-22Use the top level config file for cron-jobsAaron Griffin
Source our config file, and use ARCHES from it Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
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-21Merge branch 'master' of /srv/projects/git/dbscriptsAaron Griffin
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-21db-move: reduce usage of loopsPierre Schmitz
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21add support for split packages to db-removePierre Schmitz
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21Add support for split packages to db-movePierre Schmitz
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-21Very minor additionsFrancois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21Bugfix: make TMPDIR within the for loopFrancois Charette
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21Refactor ftpdir-cleanup to handle all archesFrancois Charette
This may look like a rather large patch, but the changes are mostly a reshuffling of the code to loop over all arches first, and then handle the arch-indep packages. The cronjob has been changed accordingly. Added new category DELETESYMLINKS, which are deleted instead of being moved to package-cleanup. I have also fixed the arch-specific issue with the ftppath, using parameters in config instead. 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-20ftpdir-cleanup: Fix ARCHINDEP parsingAaron Griffin
Failed hard on empty 'any' directories Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20ftpdir-cleanup: Don't scan 'any' dirsAaron Griffin
These are handled automatically when scanning other architecutres Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20ftpdir-cleanup: Fix the symlink restore loopAaron Griffin
Previous logic was stupid... let's just check the missing files. If it's missing and exists in the any dir, then common sense says we deleted a symlink somewhere... Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20ftpdir-cleanup: Fixes for 'any' supportAaron Griffin
* Break out ftppath, base it on ftbpath_base * Only check ARCHINDEPFILES if the any dir exists * Attempt to restore symlinks before moving 'any' files out of the way Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20db-functions: minor cleanup - remove echoAaron Griffin
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20db-scripts: getpkgbase: return pkgbase by defaultPierre Schmitz
Check for pkgbase first. If and only if this doesn't exist, return pkgname. This fixes potential ordering issues. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-20ftpdir-cleanup: Corrections for 'any' packagesAaron 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>