summaryrefslogtreecommitdiffstats
path: root/misc-scripts/make-sourceball
AgeCommit message (Collapse)AuthorFilesLines
2010-11-23Rewrite sourceballs to increase performance and reliabilityPierre Schmitz1-97/+0
* Decrease file stats as much as possible * Create a list of all packages and meta data only once * Create a list of available source packages only once * Create a list of expected packages only once * Combine all three scripts into one to share data and code * Use as much information from the db files as possible and avoid using svn * Avoid attempting to create the same source package twice Logic works as follows: 1) create a list of all packages 2) Check for each package if we need a src package and create one 3) During this process create a list of all src packages that should be there 4) Diff both lists for the cleanup
2010-11-22sourceballs: check if source package was really createdPierre Schmitz1-2/+10
2010-11-22Prefer any packagesPierre Schmitz1-3/+3
2010-11-21sourceballs: Support any packagesPierre Schmitz1-3/+8
2010-11-21sourceballs: Don't write any logPierre Schmitz1-8/+7
This is consistent with the other dbscripts. The output will be send to the mailinglist.
2010-11-21sourceballs: check if PKGBUILD existsPierre Schmitz1-1/+3
2010-11-21sourceballs: fix error handlingPierre Schmitz1-5/+24
2010-11-20sourceballs: skip in a clean way if source package should not be createdPierre Schmitz1-1/+1
2010-11-20Simplify sourceballs creationPierre Schmitz1-22/+12
* Read package lists directly from DB file * Make SVNREPO configurable
2010-11-20Fix sourceballs cron jobPierre Schmitz1-9/+4
* add unit test for sourceballs and cleanup * introduce SRCPOOL and LOGDIR variables in config
2010-08-13Use common functions to print messages, warnings and errorsPierre Schmitz1-7/+7
These functions are copied from makepkg
2010-08-08Source PKGBUILD in subshellsPierre Schmitz1-7/+8
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-18/+3
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-3/+0
2010-08-08Remove BUILDSCRIPT variablePierre Schmitz1-1/+1
There is no need to have a variable for things like PKGBUILD that are very unlikely to ever change.
2010-06-28sourceballs: Added community and community-testing supportEric Bélanger1-3/+11
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-03-13sourceballs: Make cleanup more efficientEric Bélanger1-54/+0
Moved all cleanup related code in sourceballs-cleanup script and moved, now common, functions in db-functions. The cleanup script is now ran after all the new sourceballs have been fetched. Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com>
2009-10-26Added source-cleanup directory supportEric Bélanger1-1/+1
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-10-26Moved chk_license to db-functions fileEric Bélanger1-23/+1
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-10-26Moved ALLOWED_LICENSES declaration to config fileEric Bélanger1-3/+0
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-09-24make-sourceball: Re-add file parsing of name/verAaron Griffin1-5/+26
getpkgname / getpkgver were replaced with versions that scanned the .PKGINFO file. These don't work for source packages, so add the functionality back in for this case Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-09-23make-sourceballs: clean up outputAaron Griffin1-2/+2
Only output "Creating sourceball" text when we're actually creating it Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-09-23Fixed split packages support in sourceballs scriptEric Bélanger1-8/+8
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-09-22Modify sourceball remove_old functionAaron Griffin1-2/+2
The revampled getpkgname/getpkgver functions need the full path to the file now, not just the filename Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-09-14Be more careful with config file inclusionDan McGee1-0/+1
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-08-25Quiet sourceball output when license is skippedAaron Griffin1-1/+2
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2009-08-19Use db-functions file everywhereAaron Griffin1-1/+0
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-19More makepkg.conf removal - prefer toplevel configAaron Griffin1-4/+2
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-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>