You are not logged in.

#26 2010-04-30 17:45:21

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Aurget] Best AUR-Helper?

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)

Offline

#27 2010-07-08 17:25:40

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: [Aurget] Best AUR-Helper?

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

#28 2010-07-08 17:37:30

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: [Aurget] Best AUR-Helper?

Also, are you planning to had <tab> autocompletion functionality for package names? It would be great, imo. wink


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

#29 2010-07-08 17:49:41

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Aurget] Best AUR-Helper?

rent0n wrote:

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.

Offline

#30 2010-07-08 17:53:39

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Aurget] Best AUR-Helper?

rent0n wrote:

Also, are you planning to had <tab> autocompletion functionality for package names? It would be great, imo. wink

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.

Offline

#31 2010-07-08 18:43:53

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: [Aurget] Best AUR-Helper?

brisbin33 wrote:
rent0n wrote:

Also, are you planning to had <tab> autocompletion functionality for package names? It would be great, imo. wink

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! big_smile


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

#32 2010-07-09 01:33:49

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Aurget] Best AUR-Helper?

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

#33 2010-07-09 13:17:59

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Aurget] Best AUR-Helper?

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)

Offline

#34 2010-09-19 12:14:37

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: [Aurget] Best AUR-Helper?

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

#35 2010-09-19 18:01:04

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Aurget] Best AUR-Helper?

rent0n wrote:

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.

Offline

#36 2010-09-19 19:48:37

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: [Aurget] Best AUR-Helper?

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

#37 2010-09-20 08:03:41

ndowens
Member
Registered: 2007-08-15
Posts: 39
Website

Re: [Aurget] Best AUR-Helper?

I personally like clyde that Ghost1227 created.


My site: ndowens.tk

Offline

#38 2010-10-18 11:35:01

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: [Aurget] Best AUR-Helper?

@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

#39 2010-10-18 13:42:26

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Aurget] Best AUR-Helper?

should be fixed now.  also, if you report things like that on the aur page directly, i'll get emailed and probably fix it more quickly.

thanks.

Offline

#40 2010-10-18 17:36:07

rent0n
Member
From: Italy
Registered: 2009-10-29
Posts: 457
Website

Re: [Aurget] Best AUR-Helper?

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

Board footer

Powered by FluxBB