summaryrefslogtreecommitdiff
path: root/db-functions
AgeCommit message (Collapse)Author
2016-06-02testing cleanup (backported from lukeshu/xbs)Luke Shumaker
2016-04-17Backport changes from the lukeshu/xbs branch.Luke Shumaker
Notable, remove the files.db stuff that became extraneous with pacman 5.
2015-06-05Use XBS instead of the SVN/ABS grossness.Luke Shumaker
* config: drop SVNREPO * cron-jobs/sourceballs: Replace commented out SVN code and active ABS code with XBS code. The XBS code is fairly similar to the SVN code, the difference being that it uses `xbs releasepath` instead of `svn export`. * db-functions: - Rename check_pkgsvn to check_pkgxbs - check_pkgxbs: Drop the `svn export` bit, as `xbs releasepath` assumes that a working directory already exists. Replace the paths created by the `svn export` with calls to `xbs releasepath`. - check_splitpkgs: Drop the ABS `cp` -r bit, as `xbs releasepath` assumes that a working directory already exists. Replace the paths created by the `cp -r` with calls to `xbs releasepath`. Rename the variables and temporary files s/svn/xbs/ . * db-move: - First loop: Rename the variable svnrepo_from to xbsrepo_from, and get the value from `xbs releasepath`. - Second loop: Run `xbs move` before the inner loop to get a list of architectures. Rename the variable `svnrepo_from` to `xbsrepo_to`, and get the value for it from `xbs releasepath`. Because xbs guarantees that the PKGBUILD exists for the architectures listed, replace the check for whether the PKGBUILD exists with `if true`, to keep merging easy (as opposed to removing the if, and de-indenting the whole thing). * db-remove: Get the location of the PKGBUILD from `xbs releasepath`, call `xbs unrelease`, and adjust a message to use `xbs name` and mention the appropriate repo/arch pair.
2015-06-05db-functions: do better printing of whitespace-separated filenamesLuke Shumaker
2015-05-25Clean up shebangsLuke Shumaker
2014-10-04Update lastsync after db-sync or cleanup.Michał Masłowski
2014-06-18db-functions: update ${FTP_DIR}/lastupdate when we modify the repo.Luke Shumaker
Of course, this only works for things that use db-functions, so db-sync won't touch it.
2014-06-18oopsLuke Shumaker
2014-06-18db-funtions:check_splitpkgs(): use printf instead of a loopLuke Shumaker
2014-06-18more quoting fixesLuke Shumaker
2014-06-18db-functions:check_repo_permissions: ARCHES is an arrayLuke Shumaker
2014-06-18oopsLuke Shumaker
2014-06-18silly whitespace and similar fidlingLuke Shumaker
2014-06-18Use printf formatters instead of string interpolation.Luke Shumaker
I used this command to find them: egrep -r --exclude-dir={test,.git} '(plain|msg|msg2|warning|error|stat_busy|stat_done|abort|die)\s+"?[^"]*\$'
2014-06-18Clean up quoting.Luke Shumaker
2014-06-17db-functions: add mv_aclLuke Shumaker
2014-01-08Avoid using $(basename $var) , use ${var##*/} insteadLuke Shumaker
2014-01-08Fix some array quoting.Luke Shumaker
2014-01-08fix comments, indentationLuke Shumaker
2014-01-08Be very careful about using $0.Luke Shumaker
2014-01-08Fix quoting on arrays.Luke Shumaker
2014-01-08Use `mktemp -t` to respect $TMPDIRLuke Shumaker
2014-01-08misc touch upLuke Shumaker
- TODO: add trailing newline - config: add text editor hint - config.orig: remove - getrepos: quote, use -- - db-functions: hardcode some paths, remove needless nullglob
2012-02-14Ignore rsync temp filesNicolás Reynolds
2011-04-22Midnight fixJoshua Ismael Haase Hernández
2011-04-16Merge branch 'master' of git://projects.archlinux.org/dbscriptsJoshua Ismael Haase Hernández
Conflicts: db-functions
2011-04-13Fixed more errors and refactoringJoshua Ismael Haase Hernández
2011-04-02Add simple checks for handling signed packagesPierre Schmitz
In addition to this dbscripts wont accept unsigned pacakges when REQUIRE_SIGNATURE is set to true. Note: At this point no signature verification is performed at all.
2011-03-26Use repo-add to create the files database for each repoPierre Schmitz
2011-03-23Add support for packages which use the epoch variablePierre Schmitz
2011-01-15Move repo manipulation code into common functionsPierre Schmitz
repo-add and repo-remove is now indirectly called by arch_repo_add/remove. This simplifies future extensions like incremental file list creations. See FS#11302
2010-12-09repo_lock: check if repo is locked by repo-add or repo-removePierre Schmitz
2010-12-02db-update: Fail if a set of split packages is incompletePierre Schmitz
2010-11-23Rewrite sourceballs to increase performance and reliabilityPierre Schmitz
* 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-22Set CARCH as needed by some PKGBUILDsPierre Schmitz
PKGBUILDs expect CARCH to be set. This is needed when sourcing them directly.
2010-09-12_grep_pkginfo: use a more specific formatPierre Schmitz
2010-09-12check_pkgsvn: Don't assume the same PKGBUILD for all architecturesPierre Schmitz
2010-09-12check_pkgsvn: check if pkgname is in sync with svnPierre Schmitz
In addition to pkgver and pkgrel it is checked if pkgname is defined in the PKGBUILD.
2010-09-11Fix check_pkgreposPierre Schmitz
Don't use globing as this will match a package of the same version but another arch. We can be more specific here as there are no longer packages without $arch extension.
2010-09-11Use local config instead of guessing by hostnamePierre Schmitz
Using the hostname to decide which repos to use is not releiable and hard to test. Instead use config.local to configure these. config files for sigurd and gerolde were added which can be copied or symlinked to config.local on the specific host.
2010-09-11Fix check_repo_permissionPierre Schmitz
2010-09-05Check if package exists in any other repository on updatePierre Schmitz
This also checks if the sam package exists within the old package layout (without package pool)
2010-09-05Fix updating of same package into different repositories at aoncePierre Schmitz
See FS#20745
2010-09-02Set correct group after touching the db filePierre Schmitz
* When writing the db file ensure that it has write permission of the group which owns the parent directory. * This should make the adjust-permissions cron job obsolete.
2010-09-01Simplify repo configurationPierre Schmitz
* Repositories can now be defined in the config file for each host * added community-staging, gnome-unstable and kde-unstable * Exception is the adjust-permission cron-job; but we might want to use acls in future anyway Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2010-08-22add makepkg.conf for [multilib]Pierre Schmitz
2010-08-17Add additional checks when reading PKGBUILDsPierre Schmitz
If reading from a PKGBUILD fails stop immediatly. Also put out more usefull error messages.
2010-08-17Add [staging] repositoryPierre Schmitz
2010-08-15Lock repos before checkingPierre Schmitz
2010-08-15Use common names for reposPierre Schmitz