fosskers / aura

A multilingual package manager for Arch Linux and the AUR.
https://fosskers.github.io/aura/
1.66k stars 110 forks source link

Installing groups from repo #160

Closed flamusdiu closed 10 years ago

flamusdiu commented 10 years ago

I have noticed this lately but when installing group packages (i.e. libreoffice), you get two sets of prompts for installing the package. You have to remove the packages from the first prompt to keep them from being downloaded; but at the second prompt you have to ADD the packages that you want to install and if you choose any packages that were not in the first set, it will download them for you here. This is redundant.

fosskers commented 10 years ago

That's for AUR libreoffice?

flamusdiu commented 10 years ago

No. official. Here's the output:

$ sudo aura -Sy libreoffice
<snip>
Select packages from group "libreoffice"
[*]  1 libreoffice-base
[*]  2 libreoffice-calc
[*]  3 libreoffice-common
[*]  4 libreoffice-draw
[*]  5 libreoffice-gnome
[*]  6 libreoffice-impress
[*]  7 libreoffice-kde4
[*]  8 libreoffice-math
[*]  9 libreoffice-postgresql-connector
[*] 10 libreoffice-sdk
[*] 11 libreoffice-sdk-doc
[*] 12 libreoffice-writer
Use +n to select and -n to deselect, where n is the package number.
Enter nothing or "x" to finalize selection.
Multiple entries are permitted.
Modify current selection: 
<snip>
Status Legend:
(OK):download completed.
:: There are 12 members in group libreoffice:
:: Repository extra
   1) libreoffice-base  2) libreoffice-calc  3) libreoffice-common
   4) libreoffice-draw  5) libreoffice-gnome  6) libreoffice-impress
   7) libreoffice-kde4  8) libreoffice-math
   9) libreoffice-postgresql-connector  10) libreoffice-sdk
   11) libreoffice-sdk-doc  12) libreoffice-writer

Enter a selection (default=all): 

Here's the output from pacman:

$ sudo pacman -Sy libreoffice
<snip>
:: There are 12 members in group libreoffice:
:: Repository extra
   1) libreoffice-base  2) libreoffice-calc  3) libreoffice-common
   4) libreoffice-draw  5) libreoffice-gnome  6) libreoffice-impress
   7) libreoffice-kde4  8) libreoffice-math
   9) libreoffice-postgresql-connector  10) libreoffice-sdk
   11) libreoffice-sdk-doc  12) libreoffice-writer

Enter a selection (default=all): 
flamusdiu commented 10 years ago

Not sure why aura does that first check when pacman asks as well. It's a pain when installing large packages. I prefer the first set where you can remove packages instead of the last set where you need to add them. I don't like to install all the packages for libreoffice or even xorg (this one is a pain).

fosskers commented 10 years ago

That's quite odd. That check is not programmed into aura at all. In fact for all -S operations, aura just sits on top of pacman and lets it do its thing. I'm not sure what else to tell you.

flamusdiu commented 10 years ago

What the heck. Umm. I'll see what I can locate about it. There has to be something telling pacman to do that. I've only see it when using aura which is why I didn't know the -S function are just pass throughs.

On Wed, Oct 30, 2013 at 2:35 AM, Colin Woodbury notifications@github.comwrote:

That's quite odd. That check is not programmed into aura at all. In fact for all -S operations, aura just sits on top of pacman and lets it do its thing. I'm sure what else to tell you.

— Reply to this email directly or view it on GitHubhttps://github.com/fosskers/aura/issues/160#issuecomment-27368076 .

mehcode commented 10 years ago

That is powerpill.

$ sudo powerpill -S libreoffice
Select packages from group "libreoffice"
[*]  1 libreoffice-base
[*]  2 libreoffice-calc
[*]  3 libreoffice-common
[*]  4 libreoffice-draw
[*]  5 libreoffice-gnome
[*]  6 libreoffice-impress
[*]  7 libreoffice-kde4
[*]  8 libreoffice-math
[*]  9 libreoffice-postgresql-connector
[*] 10 libreoffice-sdk
[*] 11 libreoffice-sdk-doc
[*] 12 libreoffice-writer
Use +n to select and -n to deselect, where n is the package number.
Enter nothing or "x" to finalize selection.
Multiple entries are permitted.
Modify current selection:  

A way to fix this is to have the fetch and install commands communicate (eg. the fetch command returns what packages it actually fetched).

fosskers commented 10 years ago

A way to fix this is to have the fetch and install commands communicate (eg. the fetch command returns what packages it actually fetched). Could you elaborate?

Also small round-about: the --no-pp flag.

mehcode commented 10 years ago

Apologies for being unclear. This isn't something that is easily fixed from aura's end. It is a powerpill problem.

A possible alternative is to step away from powerpill and use aria2c directly with libalpm. I'm not sure how close aura is from being based solely on libalpm (haven't looked to closely at the code base yet) but I'd love to implement this (and get the progress output identical to pacman's except for having multiple progress bars move simultaneously using escape code magic).

fosskers commented 10 years ago
  1. Aura being based on libalpm is the holy grail and a long-term goal. I haven't advanced the haskell bindings to libalpm very far yet, though.
  2. Aura uses a bunch of escape code magic already, so I'm in favour of more.
fosskers commented 10 years ago

Current solution is to use --no-pp. If in future aura is freed of powerpill this will fix itself.