- 30 Sep, 2014 15 commits
-
-
The retry path was removed by 4ccf16df Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
This allows to ignore specific dependencies. Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
This allows to reuse the provision checker for a simple list of provisions without a package. Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
A width of 0 indicates that either pacman is not attached to a tty or the user does not want line wrapping. Either way pacman should not fall back to the basic display. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
Scripts that parse pacman's output (like pacsearch) generally do not want wrapped lines. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
I found this feature confusing, and the documentation wasn't any help. It was pointed out to me on IRC that validpgpkeys expects full fingerprints, and won't accept shorter forms. This makes the documentation insufficient, and the variable name itself misleading. This patch bolsters the documentation to explain more about what the contents should be, and implements suffix matching to allow matching on shorters fingerprint suffices. Now, when makepkg tells you that a key ID isn't valid, it's sufficient to manually check the key ID against the known good ID, and add it as is to validpgpkeys. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
This commit changes the few remaining instances of: [[ ! $foo = "$bar" ]] to the more common: [[ $foo != "$bar" ]] Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Filenames got parsed wrongly, causing whitelist- and blacklist-checks to always return false. Caused by 8122fae5 when full path names to pkgs were introduced. Signed-off-by:
Maxim Andersson <thesilentboatman@gmail.com>
-
-
This change reveals a bootstrapping bug -- since we call the bare "makepkg" and rely on PATH lookup, we might not have a makepkg which can generate architecture-specific checksums.
-
This implements support for declarations such as: arch=('i686' 'x86_64') ... source=("somescript.sh") source_i686=("http://evilmonster.com/i686/ponies-9001-1.i686.bin") source_x86_64=("http://evilmonster.com/i686/ponies-9001-1.x86_64.bin") md5sums=('d41d8cd98f00b204e9800998ecf8427e') md5sums_i686=('e4ca381035a34b7a852184cc0dd89baa') md5sums_x86_64=('4019740e6998f30a3c534bac6a83f582') Just the same as the "untagged" sources, multiple integrity algorithms are supported. The manpage is updated to reflect support for these suffices. This commit also refactors download_sources slightly: 1) to use the otherwise preferred convention of lowercase local variable names, and to make the handling of $1 more clear. 2) rename the "fast" parameter to "novcs", to make it more clear what this token does. 3) add a new possible token "allarch" to ensure that download_sources will fetch all sources, for all architectures.
-
This also fixes a "bug" in which a PKGBUILD without any source array would generate "md5sums=()". While not technically wrong, we can easily do better and emit nothing at all.
-
-
Moving logging to the event callback caused warnings under clang due to non-literal format strings and silenced all log messages when --print was used. This reverts commit cd793c5a . Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Conflicts: lib/libalpm/alpm.h src/pacman/callback.c Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 23 Sep, 2014 13 commits
-
-
The sync help summaries was missing the information about: * -gg: View all groups and members * -ii: View extended information * -yy: Force refresh even if DBs are up to date Fixes FS#41388. Original-work-by:
Earnestly <zibeon@gmail.com> Signed-off-by:
Johannes Löthberg <johannes@kyriasis.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Calling a signal handler interrupts some functions, most notably read() and therefore fgets(). Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
The read() underlying fgets() can be interrupted by a signal handler causing fgets() to return NULL. Before we started handling SIGWINCH, the odds of interrupting a read were low and typically resulted in termination anyway. Replace all fgets calls with a wrapper that retries in EINTR. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com>
-
We rely on values in the arch array to be valid as part of variable names, so extend the arch lint check to catch this. This also cleans up lint_arch to restrict the use of "lint" only to the package-specific architecture checks. It previously had an odd declaration with a conditional expansion that would never be true.
-
Since source package creation is architecture independent, we should ignore architecture-dependent behaviors such as the lint check which will halt execution when the host machine is not a supported arch. https://github.com/falconindy/pkgbuild-introspection/issues/15
-
unix has no "folders".
-
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
alpm_pkg_get_backup hasn't returned strings since 54ef162a in 2011. Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
When we check the database version directly, there is no longer a need to scan for depends files. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
If a user manually creates the local database directory, or has an empty local database for some other reason, we silently add a version file Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
The version of the local pacman database is stored in its root in the file ALPM_DB_VERSION. The version is starting at 9, corresponding to the next libalpm library version. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
This means that a missing local database becomes an error (as it should be immediately created). Note this only creates the "local" directory and not its parent, which is checked for during locking. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Original-work-by:
Allan McRae <allan@archlinux.org> Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 16 Sep, 2014 2 commits
-
-
* convert dbpath from argument to option * add --config and --root options * read dbpath and root from config file * if root is set but not dbpath, dbpath is set relative to root Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
* conflicts need to be freed with alpm_conflict_free * sync dbs need to be unregistered and are handled by alpm_release Signed-off-by:
Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 14 Sep, 2014 6 commits
-
-
This prevents updpkgsums from potentially dirtying an otherwise pristine directory (likely $PWD) when makepkg creates the srclinks. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
This eval enables the following in a PKGBUILD to "just work": source=('$pkgname-$pkgver.tar.gz'::'https://host/$pkgver.tar.gz' ) This has at least two problems: - It violated the principle of least surprise. - It could be a security issue since URLs are arbitrary input. Instead, expand the dlagent command line into an array, replace the %o, %u place holders, and run the resultant command line as is. Embedded spaces in the DLAGENTS entry can be escaped with a backslash. Fixes FS#41682 Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Git has the ability to use helper applications for interfacing with hg, and from what we had before, the following url:: foo::git+hg::http://foo.bar/foobar would get converted to something along the lines of: filename: foo URL: http://foo.bar/foobar and the 'git+hg' part would essentially be ignored when it's getting set up in the 'get_protocol' and 'get_downloadclient' functions. With this patch it is possible to have a source link with '::' in it, however it is not possible to have a filename with '::', which is the current behavior. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Implements FS#40738.
-
Signed-off-by:
Maxim Andersson <thesilentboatman@gmail.com>
-
Change e10775340 should have included this. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 09 Aug, 2014 4 commits
-
-
Allan McRae authored
Prevents trust being spoofed by using TRUST_FULLY in the signatory's name or in an added notation. Fixes FS#41147. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
The example for human-readable values must not contain a space between the value and the unit; otherwise, pkgdelta will not recognize the command options and will error out. In prose, however, there should be a space between the value and the unit. Signed-off-by:
Jason St. John <jstjohn@purdue.edu> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Signed-off-by:
Jason St. John <jstjohn@purdue.edu> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Remove blank lines immediately following section headings. Ensure two blank lines before the start of a new section. Signed-off-by:
Jason St. John <jstjohn@purdue.edu> Signed-off-by:
Allan McRae <allan@archlinux.org>
-