- 07 Apr, 2012 8 commits
-
-
Dan McGee authored
Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dave Reisner authored
This was really only half a fix for FS#28445, as it still doesn't correctly handle the case of filenames with spaces. In the short term, there is no obvious fix for this. In the long term, I believe the correct decision is to rewrite the options parser to be more in line with GNU getopt_long. This reverts commits: ca414271. 969dcddb.
-
Florian Pritz authored
This has been 0 since 9fa18d9a , but it doesn't makes sense because we are raising an error. Signed-off-by:
Florian Pritz <bluewind@xinu.at> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Pierre Schmitz authored
We cannot rely on gpg's exit code. Instead we have to check the status-fd to figure out whether a signature is valid or not. In addition to this pacman-key --verify can now be used in scripts as it will return an exit code of 1 if the signature is invalid. Signed-off-by:
Pierre Schmitz <pierre@archlinux.de> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dan McGee authored
This matches the optimization made to repo-add in commit 8bbaf045 way back in 2009. We don't need to read the whole package file to ensure multiple .PKGINFO entries don't exist, as well-formed packages should have this file first in the archive. Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dave Reisner authored
Dan was right. This should have been FREE(), not free(). Signed-off-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dave Reisner authored
Since we treat this as an array, we need to initialize it as one. This avoids addition of an empty element to the option string when we set the option array from the calling program, e.g. +/usr/bin/makepkg[2033]: set -- -i --pkg vim -- '' Signed-off-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dan McGee authored
This encompasses a few languages that have had changes since 4.0.2 available on Transifex. Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 29 Mar, 2012 2 commits
-
-
Allan McRae authored
User reports indicate that the SKS keyservers are more reliable than both the gnupg.net and mit.edu ones. Signed-off-by:
Allan McRae <allan@archlinux.org> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Allan McRae authored
Using -e without arguments failed to export all keys. Using --export worked as expected. Signed-off-by:
Allan McRae <allan@archlinux.org> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 28 Mar, 2012 3 commits
-
-
Dan McGee authored
Pull updates from transifex, run update-po on all files, fix a few errors, and push them back to Transifex. Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dave Reisner authored
delayed allocation hoses us here and causes erroenous install sizes to be reported. Add a short sleep to allow the transaction to be committed to the filesystem and the stat buffers to be updated. This is apparently a "feature", as per to some of the denizens of #btrfs on freenode. Signed-off-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dave Reisner authored
For key searches only, gpg2 will fail to lookup any and all keys that are not prefixed with 0x. Signed-off-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 16 Mar, 2012 1 commit
-
-
Allan McRae authored
Signed-off-by:
Allan McRae <allan@archlinux.org> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 15 Mar, 2012 2 commits
-
-
Dave Reisner authored
In case we have a mirror failure, unlink_on_fail would remain set, causing an interrupt in a successive download attempt to be wrongly unlinked. This also fixes a memory leak in the url member, as we would allocate over the previous, unfreed URL. Signed-off-by:
Dave Reisner <dreisner@archlinux.org>
-
Dave Reisner authored
To avoid conflicts on reusing a payload after a failed download, ensure that we reset the filename hints in the payload struct prior to the download operation. Signed-off-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 13 Mar, 2012 2 commits
-
-
Allan McRae authored
Ignore *.sig, *.db*, and *.src.tar* when cleaning the package cache. Fixes FS#25166. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Dan McGee authored
These got lost when I switched to the new Asciidoc tables syntax in commit 1ebe5dc1 . Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 09 Mar, 2012 1 commit
-
-
Dave Reisner authored
Similar to how we manage receipt of SIGINT in pacman's internal downloader, catch the signal and invoke our own trap handler before unsetting it and calling the default. This requires a slight modification to the arguments passed to trap_exit so we can pass the raised signal to trap_exit (note that we substitue USR1 for ERR since the latter is unique to bash). Fixes FS#28491. Signed-off-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 05 Mar, 2012 8 commits
-
-
Pierre Schmitz authored
Verifing the keyring at this point is useless as a malicious package is already installed and as such has several options to bypass this check anyway. Signed-off-by:
Pierre Schmitz <pierre@archlinux.de> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dan McGee authored
* it updates to all translations * minor fr, pt_BR, de, lt, sk and uk updates * add new strings in pacman translation catalog Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Allan McRae authored
Passing the "-L" flag to stat means we get the size of the file being pointed to for symlinks instead of the size of the symlink. Keep "-L" usage in repo-add as we want the actual size of the package/delta/signature there. Signed-off-by:
Allan McRae <allan@archlinux.org>
-
Florian Pritz authored
With multiple items in $libdepends this check only worked for the first one, everything after this returned an error. This was probably an issue with \s being treated wrong. Fix-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
Florian Pritz authored
libperl.so results in soname="libperl.so.so" which is wrong. This returns the correct string: "libperl.so" Fix-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Florian Pritz <bluewind@xinu.at>
-
Dan McGee authored
If we begin to create a file list when loading a package, but abort because of an error to one of our goto labels, the memory used to create the file list will leak. This is because we use a set of local variables to hold the data, and thus _alpm_pkg_free() cannot clean up for us. Use the file list struct on the package object as much as possible to keep state when building the file list, thus allowing _alpm_pkg_free() to clean up any partially built data. Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dan McGee authored
This is easily triggered via a `pacman -Sc` operation when it attempts to open a delta file as a package- we end up leaking loads of memory due to us never freeing the archive object. When you have upwards of 1200 delta files in your sync database directory, this results in a memory leak of nearly 1.5 MiB. Also fix another memory leak noticed at the same time- we need to call the internal _alpm_pkg_free() function, as without the origin data being set the public free function will do nothing. Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dan McGee authored
Ensure we give database signatures special treatment like we already did for package signatures. Attempt to parse the database name out of them before taking the proper steps to handle their existence. This fixes FS#28714. We also add an unlink_verbose() helper method that displays any errors that occur when unlinking, optionally opting to skip any ENOENT errors from being fatal. Finally, the one prompt per unknown database has been removed, this has no real sound purpose and we don't do this for packages. Simply kill databases we don't know about; other programs shouldn't have random data in this directory anyway. Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 20 Feb, 2012 3 commits
-
-
Dan McGee authored
Mostly a waste of time. Sure, we no longer make sure your pacman database partition has enough space, but if you are using this option you better know what you are doing anyway. Signed-off-by:
Dan McGee <dan@archlinux.org> (cherry picked from commit ee969006)
-
Dan McGee authored
This was noted when trying to perform an operation on a pacman database on a read-only file system. Print the actual underlying errno string, and only show the "you can remove" message if the lock file actually exists. Before: $ pacman -Su error: failed to init transaction (unable to lock database) if you're sure a package manager is not already running, you can remove /e/db.lck After: $ pacman -Su error: failed to init transaction (unable to lock database) error: could not lock database: Read-only file system Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dan McGee authored
If one had a mountpoint at '/e' (don't ask), a file being installed to '/etc' would map to it incorrectly. Ensure we do more than just prefix matching on paths by doing some more sanity checks once the simple strncmp() call succeeds. Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 16 Feb, 2012 2 commits
-
-
Dave Reisner authored
Modify parse_options logic to fill an array instead of printing parsed options. Avoid eval like the plague. Because it is the plague. Fixes bugs such as FS#28445. Signed-off-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Eric Bélanger authored
Close FS#28434 Signed-off-by:
Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by:
Allan McRae <allan@archlinux.org> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 15 Feb, 2012 3 commits
-
-
Dan McGee authored
This reverts commit f3fa77bc along with making other necessary changes to fully back this (mis)feature out until we can do it correctly. The quick summary here is this was not implemented correctly; provides are not fully taken into account in this logic, and making that happen exposes a lot of other flaws in this code that are covered up later on in the dependency resolving process by several other pieces of convoluted and conditional logic. Tests have been adjusted accordingly. Some test EXISTS conditions have been removed as we already know the package is installed locally, and we also are checking the VERSION condition anyway. With these two related revert commits, we do have some changes in test pass/fail results: * upgrade078.py: does not pass, this is due to --recursive getting removed for -U/-S operations after this commit. * sync302.py: the version checks have been disabled, so this test continues to pass but has been scaled back in scope. * sync303.py: now passes, was failing before. * sync304.py: still failing, was failing before. * sync305.py: now passes, was failing before. * sync306.py: still passes, was passing before. Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dan McGee authored
This reverts commit 09034520 . Tests affected by this revert have been adjusted; additionally a few EXIST tests have been removed where there is already a VERSION test doing the job for us. Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Christoph Vigano authored
This fixes a problem that occurs if you tell makepkg to remove installed dependencies (just to be sure) but there are none. As the $ was missing in front of deplist, the check never happened and 'pacman -Rn' was called which obviously failed. Dan: later reported as FS#28448. Signed-off-by:
Christoph Vigano <mail@cvigano.de> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 14 Feb, 2012 2 commits
-
-
Dan McGee authored
Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dan McGee authored
This wonderful/awful little bash shell variable wrecks havoc on `cd` calls in shell scripts. Unset CDPATH in makepkg where we use `cd` quite heavily. In pacman-optimize, we can move the change directory logic into the bsdtar call so we are left with no usages of `cd` in the script. Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 13 Feb, 2012 1 commit
-
-
Dave Reisner authored
The max filesize for a delta download must be the full size of the delta file, not just what's remaining. Fixes FS#28345 Signed-off-by:
Dave Reisner <dreisner@archlinux.org> Signed-off-by:
Dan McGee <dan@archlinux.org>
-
- 11 Feb, 2012 2 commits
-
-
Dan McGee authored
Signed-off-by:
Dan McGee <dan@archlinux.org>
-
Dan McGee authored
Signed-off-by:
Dan McGee <dan@archlinux.org>
-