summaryrefslogtreecommitdiffstats
path: root/misc-scripts
AgeCommit message (Collapse)AuthorFilesLines
2009-08-19More makepkg.conf removal - prefer toplevel configAaron Griffin2-11/+2
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-19Remove find-dupes script (unused)Aaron Griffin1-77/+0
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-19Variable rename fix: SVN_PATH -> SVNREPOEric Bélanger1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-18Replace a string compare with a -f checkAaron Griffin1-1/+1
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-16Add DB_COMPRESSION='gz', as this has been removed from makepkg.confThomas Bächler1-0/+1
2009-08-16Make ftpdir-cleanup NOT delete all packages if databas extraction failsThomas Bächler1-1/+12
2009-08-16Avoid confusing messages and potential problems when no packages are presentThomas Bächler1-0/+3
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-07-23ftpdir-cleanup: Loop over arches for 'any' linksAaron Griffin1-8/+10
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-23ftpdir-cleanup: Minimize outputAaron Griffin1-4/+2
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-21Very minor additionsFrancois Charette1-1/+2
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21Bugfix: make TMPDIR within the for loopFrancois Charette1-2/+5
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21Refactor ftpdir-cleanup to handle all archesFrancois Charette1-117/+150
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-21any support: use relative symlinksAaron Griffin1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21ftpdir-cleanup: Fix ARCHINDEP parsingAaron Griffin1-1/+2
Failed hard on empty 'any' directories Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-21ftpdir-cleanup: Fix the symlink restore loopAaron Griffin1-22/+7
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-21ftpdir-cleanup: Fixes for 'any' supportAaron Griffin1-10/+40
* 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-20ftpdir-cleanup: Corrections for 'any' packagesAaron Griffin1-2/+4
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-07-17ftpdir-cleanup: Allow configurable destination dirAaron Griffin1-8/+9
3rd argument to the script Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-06-12fixes for ftpdir-cleanupFrançois Charette1-2/+2
* don't add files with arch=any to EXTRAFILES * replace && by -a within [ ] Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-05-13use pkgext defined in makepkg.confPierre Schmitz2-4/+4
Signed-off-by: Pierre Schmitz <pierre@archlinux.de> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-03-20ftpdir-cleanup: remove arch-independent packagesAbhishek Dasgupta1-1/+25
Removes architecture independent packages which are not symlinked in any of the architecture repositories.
2009-02-26make-sourceball: license skip is NOT a failureAaron Griffin1-1/+2
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-23Remove old sourceballs before doing anythingAaron Griffin1-1/+1
This prevents dangling sourceballs sitting around when things start to fail or licenses are changed. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-21make-sourceball: Fix license error outputAaron Griffin1-1/+1
Remove the goofy -e and add the pkgname Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-19make-sourceballs: one logfile per pkgnameAaron Griffin1-1/+1
This aids with cleanup, and we really didn't need multiple files anyway :) Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-16make-sourceball: copy the proper pkg pathEric Bélanger1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-16make-sourceball: Add -f to gzip and rmAaron Griffin1-2/+2
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-15Add repo/arch to make-sourceball log pathAaron Griffin1-3/+4
Original-work-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-15make-sourceball: move popd call before returnAaron Griffin1-1/+2
This ensures the 'cp' succeeds Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-15Fix arg number check in make-sourceballAaron Griffin1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-13Call makepkg with --ignorearch during --allsourceAaron Griffin1-1/+1
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-13Add -f flag to make-sourceballAaron Griffin1-13/+25
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-13Correct the sourceball removal stepAaron Griffin1-6/+32
Only remove sourceballs that do NOT exist in any repo This code is experimental Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-13Rename local 'arch' variable to '_arch'Aaron Griffin1-4/+4
We source the PKGBUILD, which causes issues here Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-11Fail on license mismatch, instead of succeedingAaron Griffin1-2/+1
This is done mainly so we can get a log of all failures and ignore normal output Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-11Emit makepkg --allsource to a logfileAaron Griffin1-1/+5
One log file per package, in /var/log/sourceballs for easier lookup and reference. Log file is removed if the command succeeds, and gzipped on failure Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-04More sourceball output cleanupAaron Griffin1-13/+5
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-02-04Clean up output, remove 'trunk build'Aaron Griffin1-21/+5
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-01-12Add license checking to make-sourceballAaron Griffin1-0/+25
Confirm that the license of a package requires source distribution before building the source tarball TODO: Make sure we can skip this check somehow Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-01-10Use new BASEDIR facility in make-sourceballAaron Griffin1-3/+4
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-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-21Fix misc-scripts/ftpdir-cleanup pathing for /srvJan de Groot1-5/+5
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-09-02Correctly remove old sourceballs without removing the wrong filesAaron Griffin1-1/+7
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-06-20Make blank lines conditionalAaron Griffin1-2/+4
Mainly for output cleanup Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-06-20Make sure ftpdir-cleanup actually does work before outputtingAaron Griffin1-0/+6
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-29Remove unused code from make-sourceballAaron Griffin1-6/+0
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-05-29make-sourceball fixesAaron Griffin1-51/+43
* Add a top-level directory to the tarball * Use makepkg -gc and compress the dir - simpler * Other stuff, I'm sure Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>