You are not logged in.
i think i know what's happening. there's a variable nocolor='\e[0m' to reset any coloring. i [unwittingly] also added a variable nocolor=true (or false) so that users can pass --nocolor...
seems they're stepping on each other.
/edit: fixed in 2.2
Last edited by brisbin33 (2010-04-30 17:50:51)
//github/
Offline
Hi brisbin,
When a package doesn't exist in AUR, aurget fails in multiple ways:
┌─[rent0n@aspire][~]
└─[$] aurget -S wtf
resolving dependencies...
warning: the following (1) packages will be installed by pacman: wtf
searching AUR...
error: 'wtf': package not found in AUR.
┌─[rent0n@aspire][~]
└─[$] aurget -S whatthefuck
resolving dependencies...
error: whatthefuck: dependency cannot be met.
Easy fix I guess,
Thank you!
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline
Also, are you planning to had <tab> autocompletion functionality for package names? It would be great, imo.
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline
Hi brisbin,
When a package doesn't exist in AUR, aurget fails in multiple ways:┌─[rent0n@aspire][~] └─[$] aurget -S wtf resolving dependencies... warning: the following (1) packages will be installed by pacman: wtf searching AUR... error: 'wtf': package not found in AUR. ┌─[rent0n@aspire][~] └─[$] aurget -S whatthefuck resolving dependencies... error: whatthefuck: dependency cannot be met.
Easy fix I guess,
Thank you!
fixed.
//github/
Offline
Also, are you planning to had <tab> autocompletion functionality for package names? It would be great, imo.
that would probably be reaaaaaaal slow, i'd basically have to run aurget -Ss each time you try to tab complete; i don't think it would be useful.
//github/
Offline
rent0n wrote:Also, are you planning to had <tab> autocompletion functionality for package names? It would be great, imo.
that would probably be reaaaaaaal slow, i'd basically have to run aurget -Ss each time you try to tab complete; i don't think it would be useful.
Well in that case... it really doesn't matter!
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline
I wrote a bash completion for cower to complete AUR package names. It's surprisingly fast, but I suppose that has a little to do with the language of choice (C vs. Bash). Maybe you can hack it up for your own purposes...
#!/bin/bash
_cower() {
local cur prev opts src ng_set
# save current nullglob setting and turn it on
ng_set=$(shopt -p nullglob)
shopt -s nullglob
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
cower_exec=$(type -P cower)
[[ -z $cower_exec ]] && return 0
# Valid longopts
opts="-d --download -i --info -s --search -u --update -c --color \
-f --force -q --quiet -t --target -v --verbose"
# complete --info searches
if [[ $cur == -* ]]; then
COMPREPLY=( $(compgen -W "$opts" -- $cur ) )
return 0
elif [[ $cur == --target= || $prev == '-t' ]]; then
_filedir -d
return 0
fi
case "$prev" in
-@(!(-*)[di]*|-download|-info))
COMPREPLY=( $(compgen -W "$([[ ${#cur} -ge 2 ]] && $cower_exec -sq $cur 2>/dev/null)" -- $cur ) ) ;;
esac
# restore the previous nullglob setting
$ng_set
}
complete -F _cower cower
Offline
thanks falconindy, i'll put one together using aurget -Ssq and see how it performs. will report back soon.
/edit: surprisingly, it's not that bad. i'll be shipping a bash_completion function with aurget 3.0.6 -- thanks!
Last edited by brisbin33 (2010-07-09 14:24:00)
//github/
Offline
I am prompted (2 times per package!) for editing PKGBUILDS even if I set prompt_to_edit=false in ~/.config/aurgetrc.
Cheers,
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline
I am prompted (2 times per package!) for editing PKGBUILDS even if I set prompt_to_edit=false in ~/.config/aurgetrc.
Cheers,
sorry, prompt_to_edit was replaced with edit_pkgbuilds, i put the info in the post_install of the version where it changed:
#
# this determines how the editing of pkgbuilds is handled. it can be
# one of always, never, or prompt. this replaces the deprecated option
# prompt_to_edit (which can still be used). edit_pkgbuilds=prompt is
# analagous to prompt_to_edit=true, and edit_pkgbuilds=never is analagous
# to prompt_to_edit=false
###
edit_pkgbuilds='prompt'
try 'never'.
sadly, it's a lie in those comments that it "can still be used"; that was my original intention, but i screwed it up and it was misbehaving so i just disabled the old option "for now" (that was some months ago...).
also, it prompts you twice because it's once before something's sourced for deps then again when it's actually about to run makepkg on it.
//github/
Offline
Thanks, I clearly missed that.
Maybe it was better to provide a ~/.config/aurgetrc.pacnew in such a case?
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline
Offline
@brisbin33: aurget fails to upgrade itself because of validity check:
==> Validating source files with md5sums...
aurget ... FAILED
bash_completion ... Passed
==> ERROR: One or more files did not pass the validity check!
notice: aurget failed while building, remove source files (/home/enrico/.aur/aurget)? [Y/n]
Cheers,
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline
Sure, and thanks!
rent0n@deviantART | rent0n@bitbucket | rent0n@identi.ca | LRU #337812
aspire: Acer Aspire 5920 Arch Linux x86_64 | beetle: Gericom Beetle G733 Arch Linux i686
Offline