summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/remove.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-26 01:37:23 +0200
committerDan McGee <dan@archlinux.org>2011-08-29 02:37:04 +0200
commit87fb8f5d5795be9b2bcb025eac26c94d7bb1e7b3 (patch)
treed9e9e64eebe0391569db24022bdfa6829d5afb9b /lib/libalpm/remove.c
parent84d6de806bd18f4a6c0940de5ee60904f650539c (diff)
downloadpacman-87fb8f5d5795be9b2bcb025eac26c94d7bb1e7b3.tar.gz
pacman-87fb8f5d5795be9b2bcb025eac26c94d7bb1e7b3.tar.xz
Make sync error message smarter on unfound targets
We had two issues here. One is a file with an absolute path passed to -S results in a cryptic error message due to the database name being '\0'. The second is not realizing you should be doing -U instead of -S. Fix both of these to transform this: $ sudo pacman -S /tmp/binutils-2.21.1-2-i686.pkg.tar.xz error: database not found: to this: $ sudo pacman -S /tmp/binutils-2.21.1-2-i686.pkg.tar.xz error: target not found: /tmp/binutils-2.21.1-2-i686.pkg.tar.xz warning: '/tmp/binutils-2.21.1-2-i686.pkg.tar.xz' is a file, did you mean -U/--upgrade instead of -S/--sync? Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/remove.c')
0 files changed, 0 insertions, 0 deletions