oshazard / apacman

ArchLinux User Repository (AUR) helper and pacman wrapper
https://aur.archlinux.org/packages/apacman/
GNU General Public License v3.0
70 stars 11 forks source link

Didn't prompt for selection and didn't parse targets correctly #84

Open bl4ck5un opened 7 years ago

bl4ck5un commented 7 years ago

apacman didn't prompt me for selection so I hit Enter for the default. However, the default target name that should have been selected can not be parsed correctly.

$ apacman intellij
0 community/intellij-idea-community-edition 2:2016.3.2-1
      IDE for Java, Groovy and other programming languages with advanced refactoring features
1 aur/intellij-idea-ultimate-edition 2016.3.3-1 (239)
    An intelligent IDE for Java, Groovy and other programming languages with advanced refactoring features intensely focused on developer productivity.
...

Type numbers to install. Separate each number with a space.
Numbers: 1
:: There are 2 packages that provide java-environment:

Aur Targets    (1): intellij-idea-ultimate-edition
Pacman Targets (3): 1) jdk7-openjdk 2) jdk8-openjdk Enter a selection (default=1): jdk7-openjdk

:: Proceed with installation? [Y/n] y
error: target not found: 1) jdk7-openjdk # <~~~~~ NOTE how the target name is prefixed by 1)
error: target not found: 2) jdk8-openjdk
error: target not found: Enter a selection (default=1): jdk7-openjdk
Dependencies for `intellij-idea-ultimate-edition' are not met, not building...