summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2009-01-09check_packages : add --arch option.Xavier Chantry2-10/+22
The parsing script didn't set CARCH previously, and the flashplugin PKGBUILD exited in this case. First override the exit function to prevent the whole script to exit, and add a --arch option to be able to set CARCH correctly. To be used like this : For core and extra : ./check_packages.py --abs-tree=/home/abs/rsync/i686 --repos=core,extra --arch=i686 ./check_packages.py --abs-tree=/home/abs/rsync/x86_64 --repos=core,extra --arch=x86_64 For community : ./check_packages.py --abs-tree=/home/abs/rsync/i686 --repos=community --arch=i686 ./check_packages.py --abs-tree=/home/abs/rsync/x86_64 --repos=community --arch=x86_64 Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-29Remove an if check for old staging 'add' dirsAaron Griffin1-3/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-29Allow devlist-mailer to send to alternate addressesAaron Griffin1-2/+6
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-29Misc make-sourceball fixes and updatesAaron Griffin1-4/+5
* --allsource places packages in dirs with the pkgname * Syntax errors with if statement and globbing * Set and restore umask Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-29Fix sourceball generation to work with conf fileAaron Griffin1-6/+3
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-16Only remove packages that were successfully addedAaron Griffin1-2/+2
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 Griffin3-4/+4
This assumes the -q flag patch is accepted for pacman 8) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-12Add potential BUILDSCRIPT config settingAaron Griffin1-0/+2
This may get removed from makepkg.conf in the future, so let's make sure we cover our ass 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-12-02Do not touch db file if it doesn't existAaron Griffin1-2/+0
repo-add works fine if no db file exists Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-12-02Remove slashes from end of config pathsEric BĂ©langer1-2/+2
Clean up output so that we don't get double slashes FS#12241 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-23Remove some harmless error messagesAaron Griffin1-1/+3
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-23Ensure we keep track of our initial umaskAaron Griffin1-1/+1
If we call set_umask more than once, make sure we don't overwrite our initial umask, so we can restore it right Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-23Set the umask to allow g+wAaron Griffin1-0/+2
This should hopefully cover all our permission bases with regard to new files Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-23Remove 'copy_helper' as chmodding is failAaron Griffin4-17/+8
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-22Add umask setting/restoring helper functionsAaron Griffin1-0/+10
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-22Fix a variable overwrite when sourcing PKGBUILDsAaron Griffin3-31/+31
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-22Make working directory in testing2xAllan McRae1-0/+1
Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Remove /del dir usage from db-updateAaron Griffin1-50/+14
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>
2008-11-21Adjust remaining scripts for new repo locationsDan McGee2-3/+3
Edited-by: Aaron Griffin <aaronmgriffin@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Drop unstable from processing in scriptsDan McGee2-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Fix misc-scripts/ftpdir-cleanup pathing for /srvJan de Groot1-5/+5
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Move cron-jobs to /srv from /homeAaron Griffin3-5/+5
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Remove unused cron-job 'genpkglist'Aaron Griffin1-28/+0
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Clear traps on cleanupAaron Griffin4-22/+26
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-21Fix patching for chmod callAaron Griffin1-1/+3
dirname was failing if the target was a dir Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Switch svn path to be proper on geroldeAaron Griffin1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-21Move everything to /srv to support new server confAaron Griffin6-8/+9
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 Griffin6-20/+19
This should allow us to move FTP and SVN placement around Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-10cron-jobs: use renice to lower job priorityDan McGee3-0/+9
Lower the job priority of our cron jobs so they don't interfere with other more important things on the server. None of these are very CPU intensive, but priority for I/O operations should go elsewhere. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-10Remove chmod on /home/aur/*Dan McGee1-2/+0
This one portion of the adjust-permissions script takes over a minute of wall clock time to run on gerolde when no other cron jobs are running. It takes three minutes when we hit the hour mark on the clock due to everything else going at the same time. A find on /home/aur/unsupported reveals this command will need to touch ~77000 files. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-11-09Remove an erroneous '1' signal trap for cleanup() funcAaron Griffin4-4/+4
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-10-21Add copy_helper function to ensure correct permissionsAaron Griffin4-10/+19
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>
2008-10-21Remove some goofy debugging messages from db-functionsAaron Griffin1-2/+0
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-10-17Fix a typo in db-update's usage outputAaron Griffin1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-10-06check_packages : improve the "skip klibc dep" hack.Xavier Chantry1-1/+1
It is not possible to check the klibc dep on the PKGBUILD level, so I made a hack to skip it. This hack broke on klibc-jfflyAahxqaliwAofrf_fdf5upI because of the underscore. But we can simply use the \w regexp which matches any alpha-numeric char, including underscore. According to klibc developer, dashes are possible too. Also the length of this string is always 27 chars, so we can use that. Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-09-14Move temporary directories to /home/tmpAaron Griffin4-4/+4
This is to allow moves to /home/ftp/ to remain on the same filesystem, thus making the final moves atomic Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-09-14Validate a package file's architectureAaron Griffin2-9/+32
Apparently, people seem to be renaming files as a "hack" and breaking things. Let's make sure they edited the PKGINFO too Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-09-02Correctly remove old sourceballs without removing the wrong filesAaron Griffin2-1/+8
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-09-02Cron-job changesAaron Griffin1-1/+2
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-09-02Remove the unstable repositoryAaron Griffin1-3/+3
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-09-02Remove 'unstable' from sourceball creationAaron Griffin1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-09-02Forgot the db-functions file. WhoopsAaron Griffin1-0/+48
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-08-31Add sourceball cron job at the proper path (whoops)Aaron Griffin2-2/+1
Also remove readline from the skip-list Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-08-31Merge branch 'master' of ssh://archlinux.org/srv/projects/git/dbscriptsAaron Griffin2-0/+82
2008-08-31Add sourceball generating cron scriptAaron Griffin2-0/+82
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-08-31Move source generation to /home/ftp/sourcesAaron Griffin1-13/+8
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-08-31Create a "common functions" file for DB scriptsAaron Griffin4-60/+26
Common functions, such as sourcing makepkg, and locking a repo Additionally, repo-locking has been unified to prevent multiple users from corrupting a repo (i.e. db-move run while db-remove in progress) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-08-31Prevent staging cleanup if copy to repo failsAaron Griffin1-1/+3
This stops files being removed from the staging area if they were not successfully copied to the repo. This can happen due to permission issues with the database when multiple people update the repo in quick succession. Original-work-by: Allan McRae <allan@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-08-31Fix an error message copy/paste errorAaron Griffin1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>