- 26 Nov, 2019 1 commit
-
-
In commit 9c817b65 we made these sources extendable, and heuristically determined the correct extraction functions to use. But our fallback for protos that didn't have an exact extract_* function didn't take into account that 'extract_file' matches an actual proto... so we passed the netfile in while the function expected a file. Solution: the function should expect a netfile too, thereby allowing us to delay an attempted resolution of netfile -> file, to the one case where it is actually used. This makes us slightly more efficient in the non-file case, makes our functions a bit more consistent, and makes file:// extraction work again. Fixes FS#64648 Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 21 Nov, 2019 2 commits
-
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
-
- 16 Nov, 2019 1 commit
-
-
Daniel T. Borelli <danieltborelli@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 15 Nov, 2019 2 commits
-
-
Allan McRae authored
Also retire Dan into past major contributors. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
In rare cases, likely due to a well timed Ctrl+C, but possibly due to a broken mirror, a ".part" file may have size at least that of the correct package size. When encountering this issue, currently pacman fails in different ways depending on where the package falls in the list to download. If last, "wrong or NULL argument passed" error is reported, or a "invalid or corrupt package" issue if not. Capture these .part files, and remove the extension. This lets pacman either use the package if valid, or offer to remove it if it fails checksum or signature verification. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 12 Nov, 2019 1 commit
-
-
Allan McRae authored
python-3.8 changed the default tar format to PAX_FORMAT. This caused issues in our testsuite with package extraction of files with UTF-8 characters as we run the tests under the C locale. sycn600.py: error: error while reading package /tmp/pactest-xuhri4xa/var/cache/pacman/pkg/unicodechars-2.0-1.pkg.tar.gz: Pathname can't be converted from UTF-8 to current locale. Set format back to GNU_FORMAT. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 11 Nov, 2019 1 commit
-
-
Allan McRae authored
We now store key structs of our missing key info, so can not search the list for string matches. This caused missing keys to be downloaded once for every package they signed. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 08 Nov, 2019 1 commit
-
-
Previously, pacman treated no matches and an error during search the same. To fix this, alpm_db_search now returns its status as an int and instead takes the to be returned list as a param. Allowing front ends to easily differentiate between errors and no matches. Signed-off-by:
morganamilo <morganamilo@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 07 Nov, 2019 2 commits
-
-
We only ever use it as a bool, no need to pass a char* around. Signed-off-by:
morganamilo <morganamilo@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Redirect file to stdin so wc -c doesn't print a file name that needs to be stripped. Signed-off-by:
Ethan Sommer <e5ten.arch@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 06 Nov, 2019 5 commits
-
-
Now that library/ is fully gone, we don't need this anymore. Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
pkgdelta was the last user, and it is gone now. Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
This is a useless piece of information. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Reads PKGBUILD into an array and replaces the pkgver and pkgrel with bash parameter substitution, then uses shell redirection to write to to the file. Because shell redirection follows symlinks, this accomplishes the same thing as the previous default of using the GNU-specific --follow-symlinks sed flag. Removes SEDPATH and SEDINPLACEFLAGS from the build systems as they are not used elsewhere. Signed-off-by:
Ethan Sommer <e5ten.arch@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Currently pacman is hard coded to print the dbpath, then the error alpm returned. Even though the error could really be caused by anything. So instead just print the arugemnts given to alpm and not assume the resulting error message is releated to either path. Fixes FS#59595 Signed-off-by:
morganamilo <morganamilo@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 05 Nov, 2019 4 commits
-
-
Allan McRae authored
This is a useful function to update all our copyright years. Move it into build-aux so that it is not lost in the switch to meson. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Previously parseopts checked if there was an argument by checking that the string was non-empty, resulting in empty arguments being incorrectly considered non-existent. This change makes parseopts check if arguments exist at all, rather than checking that they are non-empty Signed-off-by:
Ethan Sommer <e5ten.arch@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Added two new functions, key_is_lsigned() and key_is_revoked() that check whether a key has been locally signed or revoked respectively during --populate. If the key is already signed or revoked, it is quietly ignored. Suggested-by:
Eli Schwartz <eschwartz@archlinux.org> Signed-off-by:
Matthew Sexton <wsdmatty@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
To cut down on spam during --populate, both locally signing and revoking keys now hide the specific keys being signed or revoked, but can be shown with --verbose. A count was added, to show the number of keys signed/revoked during the process. Partially Implements: FS#64142 - pacman-key: make populate less noisy Signed-off-by:
Matthew Sexton <wsdmatty@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 04 Nov, 2019 1 commit
-
-
Adds a "?" suffix that can be used to indicate that an option's argument is optional. This allows options to have a default behaviour when the user doesn't specify one, e.g.: --color=[when] being able to behave like --color=auto when only --color is passed Options with optional arguments given on the command line will be returned in the form "--opt=optarg" and "-o=optarg". Despite that not being the syntax for passing an argument with a shortopt (trying to pass -o=foo would make -o's argument "=foo"), this is done to allow the caller to split the option and its optarg easily Signed-off-by:
Ethan Sommer <e5ten.arch@gmail.com> Reviewed-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 01 Nov, 2019 2 commits
-
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 31 Oct, 2019 1 commit
-
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 30 Oct, 2019 4 commits
-
-
Allan McRae authored
-
Distribute asciidoc sources for all manpages instead of remembering to add files to both variables. Fixes regression in 377d4714 which broke building the website from a dist tarball: make: *** No rule to make target 'pacman-conf.8.html', needed by 'html'. Stop. (Technically this regression is already fixed by commit 942b9098 , but this is just going to keep happening, I suspect, so we should fix the root cause.) Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Fixes issue where users were allowed to run cleanup while running --geninteg or --printsrcinfo or --packagelist, thus mixing invalid responses into stdout. Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Exclude files with hardlinks when cat'ing all the files, and do a second run to look at each file with hardlinks, keep track of the ones we've already operated on, and only cat each inode once. Then use "wc -c" to get the size of all (deduplicated) files the same way we were already doing. Original-patch-by:
Ronan Pigott <rpigott@berkeley.edu> Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 29 Oct, 2019 2 commits
-
-
zipman: read -r protects against those evil manpages whose filenames contain backslash escapes, (muahahaha?) IFS= read protects against filenames with: - leading whitespace (but no one is actually stupid enough to configure their MAN_DIRS=() in makepkg.conf with such silly directories, *right*?) - trailing whitespace (but likewise, no one should be stupid enough to write an uncompressed manpage for section '1 ' or something) Also fix several other cases where we read filenames without protecting against surrounding whitespace, or without using null-delimited filenames when we could trivially do so. Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
The BSD stat command uses %N, not %n, and was incorrectly ported to meson. Signed-off-by:
Eli Schwartz <eschwartz@archlinux.org> Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 27 Oct, 2019 1 commit
-
-
Allan McRae authored
Use after free. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 24 Oct, 2019 1 commit
-
-
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 23 Oct, 2019 3 commits
-
-
Allan McRae authored
make update-copyright OLD=2018 NEW=2019 Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 22 Oct, 2019 2 commits
-
-
makepkg now complains when PACKAGER is not in the format "name <email>". Hide this warning when PACKAGER is unset but still warn if it is set to something out of format. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Commit 7afe5117 attempted to add zstd compression support to repo-add, but failed... FS#64213 Signed-off-by:
Allan McRae <allan@archlinux.org>
-
- 21 Oct, 2019 3 commits
-
-
Allan McRae authored
Also caught the source of a man page not being distributed. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org>
-