You are not logged in.

#101 2010-01-19 16:40:23

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

res wrote:
bruenig wrote:

If this is the sort of thing you are interested in, you probably are looking for slurpy which just downloads the aur tarball and lets you figure out what to do with it.

True, but it's more like an option request than anything. No one, or at least few enough people, would realistically use it during large updates with plenty of dependencies, yet it's there for those that rightfully don't like blindly sourcing foreign code.

Ok. Let me see. I am also going to try to work with aur to create a system where people parse pkgbuild's locally with a script which creates an aur-parseable metafile, thus enabling them to expand the ability of the rpc.

Offline

#102 2010-01-19 16:44:11

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

olegchir wrote:
bruenig wrote:
olegchir wrote:

bruenig, can you add support for --skipinteg? (or maybe it can be globally overriden somewhere?)

Adding support for it would be trivial, I just don't know why. Like, are you wanting to skip integrity checks for things you download off the aur?

Exactly
There's a lot of packages with wrong md5 or without it at all... beginning from yaourt itself sad

Added.

Offline

#103 2010-01-19 17:00:45

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

With yaourt when yaourt -Su --aur

tragtor: 0.8.9-1 => 0.8.12-1

with packer when packer -Su

:: Synchronizing aur database...
 aur                                         51  51 [#####################] 100%
:: Starting full aur upgrade...
 local database is up to date
┌─[ dany @ laptop ] - [ 17:50:23 Tue Jan 19 ] - [ ~ ]
└─[$]> pacman -Q tragtor
tragtor 0.8.9-1

after upgrade with yaourt

┌─[ dany @ laptop ] - [ 18:02:18 Tue Jan 19 ] - [ ~ ]
└─[$]> pacman -Q tragtor
tragtor 0.8.12-1

I have one package from AUR at IgnorePkg section of pacman.conf file

Last edited by na12 (2010-01-19 17:11:05)

Offline

#104 2010-01-19 18:09:27

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Update packer and try again:

packer -S packer

Offline

#105 2010-01-19 19:22:23

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

I have the newest version

┌─[ dany @ laptop ] - [ 18:05:13 Tue Jan 19 ] - [ ~ ]
└─[$]> pacman -Q packer
packer 20100118-1

Offline

#106 2010-01-19 22:43:32

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

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

hey bruenig,

i was reading through packer today and just noticed a little semantical thing, thought you might be interested:

      [[ -z "${groups}" ]] && groups="None"
      echo -e "${COLOR1}Groups         : ${ENDCOLOR}${groups[*]}"
      echo -e "${COLOR1}Groups         : ${ENDCOLOR}${groups[*]:-None}"

just want to be able to say i contributed ;P

Offline

#107 2010-01-20 01:45:10

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

na12,

It works here.

$ pacman -Q tragtor
tragtor 0.8.9-1
[bruenig tragtor]$ packer --auronly -Syu
:: Synchronizing aur database...
 aur                                         27  27 [################################################] 100%
:: Starting full aur upgrade...
resolving dependencies...

Aur Targets    (1): tragtor

Proceed with installation? [Y/n]

You probably have old packer version.

Last edited by bruenig (2010-01-20 01:45:51)

Offline

#108 2010-01-20 01:50:16

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

brisbin33 wrote:

hey bruenig,

i was reading through packer today and just noticed a little semantical thing, thought you might be interested:

      [[ -z "${groups}" ]] && groups="None"
      echo -e "${COLOR1}Groups         : ${ENDCOLOR}${groups[*]}"
      echo -e "${COLOR1}Groups         : ${ENDCOLOR}${groups[*]:-None}"

just want to be able to say i contributed ;P

Changed.

Offline

#109 2010-01-20 02:03:36

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

na12 wrote:

I have the newest version

┌─[ dany @ laptop ] - [ 18:05:13 Tue Jan 19 ] - [ ~ ]
└─[$]> pacman -Q packer
packer 20100118-1

It was updated without a version number change though, so you have to reinstall it to get the update.

Offline

#110 2010-01-20 04:58:31

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

anonymous_user wrote:

It was updated without a version number change though, so you have to reinstall it to get the update.

True. I noticed that has happened a few times already.
<bruenig>: would you please consider changing the version number each time you push out updates?

Thank you for making this great tool!

Edit: nevermind, I forgot to list pacman-color in sudoers. tongue

Last edited by MajorTom (2010-01-20 05:16:42)

Offline

#111 2010-01-20 07:32:52

olegchir
Member
From: Russian Federation,Novosibirsk
Registered: 2010-01-18
Posts: 7
Website

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

bruenig wrote:

Added.

WOW! You are real coding machine smile

Offline

#112 2010-01-20 08:12:41

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

It is a git package. I don't actually change the PKGBUILD or the aur very often if ever. You are supposed to update on your own when you want the latest version with packer -S packer or use packer --devel -Syu to make sure it is included everytime during normal updates.

Last edited by bruenig (2010-01-20 08:13:57)

Offline

#113 2010-01-20 16:02:43

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

bruenig wrote:

when you want the latest version (...) use packer --devel -Syu

Oh, OK. Most packages of that sort actually have '-git' in their names. Any chance you could mention that^ on packer's AUR web page?

Also, I have a tiny feature request. I often find myself using pacman -Ssq <searchstring> to get nice compact results without version numbers. I think it's really useful. Just to make -Ss complete, you know... cool

Offline

#114 2010-01-20 16:27:03

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

It's quick. However, without things like colourised output and the ability to tell if a package is installed or not in a search, it's still not nearly as useful to me as yaourt.

Nice effort. I'll keep an eye on it.


Cthulhu For President!

Offline

#115 2010-01-20 16:36:00

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

buttons wrote:

It's quick. However, without things like colourised output and the ability to tell if a package is installed or not in a search, it's still not nearly as useful to me as yaourt.

Was that a feature request? big_smile Having the search results show if a package is installed was pretty nice. I do remember liking it when I used yaourt, but for some reason I haven't missed it. What do you think, bruenig, can it be implemented and still be *fast*? big_smile

Output is colorized if you have "pacman-color" installed, isn't it? I not at home right now, and for some reason I can't remember if it is or isn't. tongue

Offline

#116 2010-01-20 16:36:51

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Actually, you do get colorised output. packer uses pacman-color for that.

As for the "installed" status - this question has already been answered on the AUR page:
http://aur.archlinux.org/packages.php?ID=33378

Edit: beat by 51sec.

Last edited by MajorTom (2010-01-20 16:56:04)

Offline

#117 2010-01-20 17:09:51

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

buttons wrote:

It's quick. However, without things like colourised output and the ability to tell if a package is installed or not in a search, it's still not nearly as useful to me as yaourt.

Nice effort. I'll keep an eye on it.

Colorizing pacman output without using pacman-color makes the program incredibly slow. Why would I use bash for something that already exists in C? So does checking if every search result is installed. Install pacman-color is the first solution. The second solution really is to realize that there is a tradeoff. You can have each search take near a minute and get information such as whether something is installed included, or you can get information out there fast.

Another thing you might want to realize is that yaourt search literally does not work. As in, it does not find all of the matches it should. Try 'yaourt  pacman wrapper' and then 'packer pacman wrapper' to see. Yaourt is not finding over half of the aur packages it should be. In addition to this, yaourt -Ss pacman wrapper does not even work! It seems to search for all things that match 'pacman' OR 'wrapper'! What in the hell is that.

So, yeah.

Last edited by bruenig (2010-01-20 17:16:59)

Offline

#118 2010-01-20 19:10:35

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Where is packer conf file,and how can i use pacman-color with packer?

Offline

#119 2010-01-20 19:15:19

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Afaik it doesn't have any conf file though you can just open packer in a text editor. And I think you just need to install pacman-color from AUR. Packer will detect if you have it.

Offline

#120 2010-01-20 19:41:06

kaivalagi
Member
From: Norwich, UK
Registered: 2009-11-05
Posts: 145

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

MajorTom wrote:

As for the "installed" status - this question has already been answered on the AUR page:
http://aur.archlinux.org/packages.php?ID=33378

I think it would be nice to get the installed status fetched and displayed based on a command line switch being present, that's if it can be done so that it doesn't slow things down too much when the switch isn't there...no great loss if it isn't there though

Thanks for your hard work bruenig

Edit: +1 on the appending of ".git" to package name, that would be the convention to use I think. All my bazaar based packages are ending in "-bzr" for example - but I could well be wrong smile

Last edited by kaivalagi (2010-01-20 19:48:41)


Running Arch 64 (Made the switch to Arch 10/2009)
AUR | BZR

Offline

#121 2010-01-20 19:53:18

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Minor bug:

resolving dependencies...
Dependency ` lib32-pcre of `bin32-skype' does not exist.
Not updating `bin32-skype'.

Aur Targets    (0): 

Proceed with installation? [Y/n]

Pressing 'n' to not install 0 of 0 targets does not result in the universe imploding, as expected.


Cthulhu For President!

Offline

#122 2010-01-20 21:14:40

MajorTom
Member
Registered: 2008-09-12
Posts: 58

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

Matthew, do you feel packer -Sg searchstring could be easily implemented?
I think it would be beneficial and again it's something to complete the -S set of arguments.

Offline

#123 2010-01-20 21:16:44

r6
Member
From: Melbourne
Registered: 2008-07-02
Posts: 156

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

As an experiment I modified packer to show the installed status of packages.

Searching 4359 packages (packer -Ss a), packer takes 1 second, and the modified packer takes 20 seconds. (yaourt took 3 minutes 43 seconds). There might be a faster way to do it, though.

Last edited by r6 (2010-01-20 21:42:28)

Offline

#124 2010-01-21 00:08:33

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

na12 wrote:

Where is packer conf file,and how can i use pacman-color with packer?

If pacman-color is installed, it uses it and colors all output. If pacman-color is not installed, it does not color anything.

Offline

#125 2010-01-21 00:09:56

bruenig
Member
Registered: 2007-05-20
Posts: 175

Re: packer - New bash aur+pacman wrapper (replaces poorly written yaourt)

MajorTom wrote:

Matthew, do you feel packer -Sg searchstring could be easily implemented?
I think it would be beneficial and again it's something to complete the -S set of arguments.

I am not sure how to search for package groups on aur.

Offline

Board footer

Powered by FluxBB