e36freak / meat

30 stars 7 forks source link

Unnecessary (re)installation of dependencies #12

Open SanskritFritz opened 11 years ago

SanskritFritz commented 11 years ago

I did a meat --update today and stumbled into the following problem:


Cower is downloading packages...

Repo Targets (19): wget java-environment tomcat6 maven lib32-glibc sdl_image libvncserver sdl_mixer sdl_ttf hicolor-icon-theme bash awk git cairo curl yajl pacman perl puzzles

AUR Targets (10): guacamole conkywx guacd ld-lsb legendofedgar libguac-client-vnc meat-git libguac cower puzzles-menuitems

Proceed with installation? [Y/n]


IIRC earlier meat did not want to reinstall the dependencies when they were up-to-date? The problem with this is

  1. those packages will be reinstalled with the --asdeps flag.
  2. it is unnecessary time waste.

pacman has a --needed flag for point 2. but point 1 still stands.

e36freak commented 11 years ago

Thanks for the report, I'll look into this when I get the chance. I think that originally I decided that it's more efficient just to let pacman handle this, than to go over every individual package and test if it's already installed.

If --needed isn't being used at the moment, at the very least I'll get that going for the time being.

This could require rewriting a large chunk of code... If you have any suggestions about how to handle this, I'd appreciate the input.

Thanks again, DJ