deeelwy/Fetchware

Upgrade commando causes an exception

Closed this issue · 1 comments

At least on my system I got error if I use the upgrade command:

[09:39] root@localhost ~ # fetchware upgrade App-Fetchware
Upgrading installed fetchware package [].
fetchware: Too many installed packages match the argument you provided to the
upgrade command. Your argument was [], and the multiple
results it returned were:
App-Fetchware-1.007-ea1ize.fpkg
App-Fetchware-1.007.fpkg
test-dist-1.01.fpkg
Fetchware threw an exception! Exiting with an exit status of 1 for failure.
Choose which package from the list above you want to upgrade, and rerun
fetchware upgrade using it as the argument for the package you want to upgrade.

[09:39] root@localhost ~ # fetchware upgrade App-Fetchware-1.007
Upgrading installed fetchware package [].
fetchware: Too many installed packages match the argument you provided to the
upgrade command. Your argument was [], and the multiple
results it returned were:
App-Fetchware-1.007-ea1ize.fpkg
App-Fetchware-1.007.fpkg
test-dist-1.01.fpkg
Fetchware threw an exception! Exiting with an exit status of 1 for failure.
Choose which package from the list above you want to upgrade, and rerun
fetchware upgrade using it as the argument for the package you want to upgrade.

[09:40] root@localhost ~ # fetchware upgrade-all
Fetchware threw an exception! Exiting with an exit status of 1 for failure.
fetchware: fetchware's upgrade-all command takes no arguments. Instead, it
simply loops through fetchware's package database, and upgrades all already
installed fetchware packages. Please rerun fetchware upgrade-all without any
arguments to upgrade all already installed packages, or run fetchware help for
usage instructions.

On Wed, 27 Nov 2013 00:45:30 -0800
Wolf notifications@github.com wrote:

At least on my system I got error if I use the upgrade command:

[09:39] root@localhost ~ # fetchware upgrade App-Fetchware
Upgrading installed fetchware package [].
fetchware: Too many installed packages match the argument you provided to the
upgrade command. Your argument was [], and the multiple
results it returned were:
App-Fetchware-1.007-ea1ize.fpkg
App-Fetchware-1.007.fpkg
test-dist-1.01.fpkg
Fetchware threw an exception! Exiting with an exit status of 1 for failure.
Choose which package from the list above you want to upgrade, and rerun
fetchware upgrade using it as the argument for the package you want to upgrade.

[09:39] root@localhost ~ # fetchware upgrade App-Fetchware-1.007
Upgrading installed fetchware package [].
fetchware: Too many installed packages match the argument you provided to the
upgrade command. Your argument was [], and the multiple
results it returned were:
App-Fetchware-1.007-ea1ize.fpkg
App-Fetchware-1.007.fpkg
test-dist-1.01.fpkg
Fetchware threw an exception! Exiting with an exit status of 1 for failure.
Choose which package from the list above you want to upgrade, and rerun
fetchware upgrade using it as the argument for the package you want to upgrade.

[09:40] root@localhost ~ # fetchware upgrade-all
Fetchware threw an exception! Exiting with an exit status of 1 for failure.
fetchware: fetchware's upgrade-all command takes no arguments. Instead, it
simply loops through fetchware's package database, and upgrades all already
installed fetchware packages. Please rerun fetchware upgrade-all without any
arguments to upgrade all already installed packages, or run fetchware help for
usage instructions.


Reply to this email directly or view it on GitHub:
#3

This bug was caused by the same messed up removal of given/when that caused bug #2. And it was fixed by the same commit 6b32717 .

So just upgrade your install of fetchware to the latest version (1.008), and it should fix this problem.