- 15 Nov, 2021 1 commit
-
-
Jelle van der Waa authored
-
- 27 Oct, 2021 1 commit
-
-
Johannes Löthberg authored
db-move: Clarify error message when the specified repo isn't correct for the current dbscripts instance It's not entirely clear what a "configured repository" is, but hopefully saying that the given repo isn't a "valid repository" is clearer. In typical use this will result in an error like this: ==> ERROR: extra is not a valid repository for /community/db-move or this: ==> ERROR: community-testing is not a valid repository for /packages/db-move Signed-off-by:
Johannes Löthberg <johannes@kyriasis.com>
-
- 26 Oct, 2021 1 commit
-
-
Otherwise if you use the dbscripts for core/extra for community repos, or vice versa, you'll get an error saying that you don't have permissions to move packages from or to the given repositories, which can be confusing if you don't immediately notice your mistake. Signed-off-by:
Johannes Löthberg <johannes@kyriasis.com>
-
- 12 Mar, 2021 1 commit
-
-
- 10 Jan, 2019 1 commit
-
-
Eli Schwartz authored
Don't allow anomalous testing packages floating around after a rebuild which are older than stable.
-
- 08 Oct, 2018 3 commits
-
-
Eli Schwartz authored
-
Eli Schwartz authored
-
Eli Schwartz authored
Introduce "db-functions-$VCS" which will eventually contain all VCS-specific code, and make this configurable in config. Move private arch_svn function and svn acl handling here, and introduce a new source_pkgbuild function to handle discovering PKGBUILDs from the configured VCS and sourcing them to extract metadata. The PKGBUILD is the only file we ever check out from version control, and only ever to scrape information from it, except for when we actually want to db-move a whole directory (which is by necessity considerably dependent on the VCS in use). source_pkgbuild is inspired by commits from the dbscripts rewrite, authored by Florian Pritz <bluewind@xinu.at>
-
- 27 Jun, 2018 2 commits
-
-
Eli Schwartz authored
-
Eli Schwartz authored
Use arrays via nameref, since makepkg does not support multidimensional arrays, and assigning to/retrieving from an array variable with an unknown name requires this. Requires bash 4.3, requires that architectures never contain chars that are invalid in a variable name -- which makepkg explicitly requires in order to support architecture-dependent sources/dependencies, and also incorporates into linting checks which forbid anything but [[:alnum:]_] so that's all good.
-
- 08 Apr, 2018 2 commits
-
-
This does correct handling of - executing a program by symlink - any weird characters in the full path - I'm sure there's another case I thought about when I originally did this.
-
Search for unquoted variables using the command: grep -Prn --exclude-dir=.git '(?<!["=]|\[\[ |\[\[ -[zn] )\$(?!{?#|\(|\? )' and ignore a bunch of false positives. You may verify that the only differences between the lines removed and lines added are double-quotes: diff -u \ <(git show|sed -n 's/^-//p'|grep -v '^-- a/'|sed 's/"//g') \ <(git show|sed -n 's/^+//p'|grep -v '^++ b/'|sed 's/"//g')
-
- 16 Mar, 2018 1 commit
-
-
These are things that were (IMO) missed in 5afac1ed. I found them using: git grep -E '(plain|msg|msg2|warning|error|die) "[^"]*\$' I went a little above-and-beyond for escaping strings for the error messages in db-functions' arch_repo_add and arch_repo_remove. The code should explain itself, but I wanted to point it out, as it's more than the usual "slap %s in there, and move the ${...} to the right".
-
- 26 Feb, 2018 1 commit
-
-
Eli Schwartz authored
Use less duplicated logic, opening the way to more elegantly change the interface for the repo-add/repo-remove scripts which are themselves symlinked together and mostly have the same interface.
-
- 20 Feb, 2018 1 commit
-
-
Eli Schwartz authored
PKGEXT is a makepkg variable referring to a fixed filename suffix, but we were also using it to mean a bash glob referring to candidate filenames. This is wrong, so rename it to PKGEXTS which is more descriptive of its purpose. Exclude the testsuite from this change, as the testsuite actually uses PKGEXT for its intended purpose. Fix the testsuite to consistently use PKGEXT, as it hardcoded the file extension in several cases, and pin its value to .pkg.tar.xz
-
- 15 Feb, 2018 3 commits
-
-
Eli Schwartz authored
Fix numerous instances of POSIX `[ ... ]`, including reliance on ugly deprecated constructs like POSIX `-a`. Since we require bash regardless, it makes sense to take full advantage of it. bash `[[ ... ]]` does not require quoting variables as the shell natively recognizes them as variables rather than expanded strings. Use shell arithmetic rather than test, when checking numerical values.
-
Eli Schwartz authored
Rather than using ugly hacks like arr[${#arr[*]}]="foo", bash 3.1 has the += operator. Update strings to use the same operator while we are at it.
-
Eli Schwartz authored
libmakepkg messaging functions provide automatic access to gettext (which we do not currently make use of) in addition to cleanly separating data from message strings. In order for this to work properly, pass argv correctly from die() to libmakepkg's error()
-
- 18 Apr, 2017 1 commit
-
-
Pierre Schmitz authored
-
- 27 Oct, 2012 1 commit
-
-
Pierre Schmitz authored
* A SVNUSER can be configured in the config file * This user needs to be able to call svn without a password
-
- 28 Jul, 2012 1 commit
-
-
This fixes this message which shouldn't have one space after the opening brace and two space before x86_64. "db-move: moved cups-filters from [testing] to [extra] ( i686, x86_64)" Signed-off-by:
Florian Pritz <bluewind@xinu.at> Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
- 16 Jun, 2012 1 commit
-
-
Pierre Schmitz authored
-
- 10 Jun, 2012 2 commits
-
-
Pierre Schmitz authored
-
Signed-off-by:
Florian Pritz <bluewind@xinu.at> Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
- 29 Apr, 2012 1 commit
-
-
Pierre Schmitz authored
-
- 19 Dec, 2011 1 commit
-
-
Pierre Schmitz authored
-
- 13 Aug, 2011 2 commits
-
-
Pierre Schmitz authored
-
Precondition: trunk/ directory never has any subdirectories. This is true across our entire svn-packages repository, although I did not check svn-community. The following command was used: find -mindepth 3 -type d ! -wholename '*/.svn*' -wholename *trunk* This should really help a variety of things- reduce the number of commits, reduce the number of emails to arch-commits, make mass package moves faster, etc. The entire dbscripts test suite still passes after this change. Signed-off-by:
Dan McGee <dan@archlinux.org> Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
- 02 Apr, 2011 1 commit
-
-
Signature files are optional and the previous behaviour is unchanged when signatures files do not exist. Signed-off-by:
Rémy Oudompheng <remy@archlinux.org> Signed-off-by:
Pierre Schmitz <pierre@archlinux.de>
-
- 23 Mar, 2011 1 commit
-
-
Pierre Schmitz authored
-
- 15 Jan, 2011 1 commit
-
-
Pierre Schmitz authored
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
-
- 11 Sep, 2010 1 commit
-
-
Pierre Schmitz authored
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.
-
- 02 Sep, 2010 1 commit
-
-
Pierre Schmitz authored
* 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.
-
- 17 Aug, 2010 1 commit
-
-
Pierre Schmitz authored
If reading from a PKGBUILD fails stop immediatly. Also put out more usefull error messages.
-
- 15 Aug, 2010 2 commits
-
-
Pierre Schmitz authored
-
Pierre Schmitz authored
db-move does no longer need a specific architecture. It will move all architecures of a given package at once. testing2x has been rewritten to respect these changes and testing2x64 is no longer needed.
-
- 14 Aug, 2010 2 commits
-
-
Pierre Schmitz authored
-
Pierre Schmitz authored
-
- 13 Aug, 2010 2 commits
-
-
Pierre Schmitz authored
These functions are copied from makepkg
-
Pierre Schmitz authored
Added a function to check if user has permission to alter the repos and db files.
-