| Commit message (Collapse) | Author | Age |
... | |
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| |/ /
| | |
| | |
| | | |
Signed-off-by: Allan McRae <allan@archlinux.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Modifying prefix caused tmp directories to be left behind after
running scriptlets, and the path '/' to be passed to _alpm_rmrf. Broken
in f01c6f.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This avoids, probably among other things, leaving the lock file in place
after a SIGINT'd sync DB update.
Fixes regression introduced in 4f8ae2b.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Revert to the old behavior that 6f5a90 attempted to simplify and go with
the original proposed solution of using "ugly" bash to detect empty
directories.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We fubar-ed this pretty good.
1. The whole old/new move shuffle was totally busted if you used a
relative path to your database, as we would just build the database in
place.
2. Our prior temp directory layout had the database files extracted
directly into it. When we tried to create a xxx.db.tar.gz file in this
same directory, due to the fact that we were no longer using a shell
wildcard, we tried to include the db in ourself, which is a big failure.
Fix all this by extracting to tree/ so we can have a clean top-level
temp directory.
3. Fix the inclusion of the './' directory entry; ensure the regex
prunes both leading paths of '.' as well as './'.
Where is that test suite again?
Signed-off-by: Dan McGee <dan@archlinux.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Otherwise there is no way to easily test or run with a standalone config
file without outside interference.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
The path was not being stripped from $file before prefixing with
$srcdir resulting in the attempted removal of a very weird
filename.
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
|
| |
| |
| |
| |
| |
| |
| | |
This reverts the merge of 2d32a9a3a348d25d6d0f3d12752399bf7fdf6570,
which reverts the commit 8581694ceb63f4ed2854206b38574599c3d9df28.
Thanks Dave for the dirty branch and non-clean rebase! :) Dave broke it.
|
| |
| |
| |
| | |
Signed-off-by: Dan McGee <dan@archlinux.org>
|
| |
| |
| |
| |
| |
| |
| |
| | |
We already use msg() and error() in here, might as well just use the
standard functions. In addition, fix one translated message that would
have printed ERROR twice if anyone ever saw it.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
_ _
/ \__/ \_____
/ / \ \ `\
) \''/ ( |\
`\__)/__/'_\ / `
//_|_|~|_|_|
^""'"' ""'"'
Signed-off-by: Dave Reisner <d@falconindy.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Allow one of 4 archive extensions: .tar{,.gz,.xz,.bz2} for each of the 2
valid repo extensions: .db and .files. Check for this via
'verify_repo_extension' directly after option parsing to assert that
this extension is present, and again after files have been added to get
the proper archive option for bsdtar.
Signed-off-by: Dave Reisner <d@falconindy.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Dave Reisner <d@falconindy.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Dump the whole conditional and filter the contents of the directory to
create an empty or non-empty archive.
Signed-off-by: Dave Reisner <d@falconindy.com>
|
| | |
| | |
| | |
| | | |
Signed-off-by: Dave Reisner <d@falconindy.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This ranks high on the code readability scale. The same function formats
all of our data and writes to the metadata file at once.
Signed-off-by: Dave Reisner <d@falconindy.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fields like groups and depends should be stored as arrays. This requires
rewriting our write_list_entry function to accomodate our new data type.
This new function will not write to a file, but rather only format it.
Signed-off-by: Dave Reisner <d@falconindy.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
grep and sed aren't needed here, and this removes the truly ugly
manipulation of IFS. The process substituion could just as well be a
herestring, but it breaks vim's syntax highlighting. Style over
substance, mang.
Signed-off-by: Dave Reisner <d@falconindy.com>
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* 'master' of git://projects.archlinux.org/pacman:
pactree: carry a list of databases for dep resolution
makepkg: Remove a lone quotation mark
makepkg: remove the cleancache option
Don't require a transaction for sync DB updates
Move locking functions to handle
Add a 'valid' flag to the database object
Move database 'version' check to registration time
Do database signature checking at load time
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
allan broke it in 4bdb868a.
Signed-off-by: Dave Reisner <d@falconindy.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This should have been removed with commit db3b86e7f34f but was
erroniously left behind.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Only one of these looked like a real red flag, in find_requiredby(), but
it doesn't hurt to fix several of them up anyway.
Unfortunately, we can't turn this on universally due to things like the
sync(), remove(), etc. builtins which we often use as variable names.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
|\ \ \ \
| | |_|/
| |/| |
| | | |
| | | | |
Conflicts:
lib/libalpm/conflict.c
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This addresses FS#24904. In a normal upgrade case, this replacement
seems to work just fine. However, when doing a sync "replace" type
upgrade, we weren't properly handling this edge case due to path
comparison not ignoring trailing slashes. Fix this by pruning any
trailing slashes past a certain point of file conflict resolution where
we no longer need them, which allows us to safely detect cases such as
now tested in the new pactest.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
While researching the root cause of FS#24904, I couldn't help but clean
up some of the cruft in here. A few whitespace/line-wrapping issues, but
also fix shadowed variables and add some const where applicable.
Signed-off-by: Dan McGee <dan@archlinux.org>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fixes FS#24893.
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>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
revision
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>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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>
|