wendellchao / opkg

Automatically exported from code.google.com/p/opkg
0 stars 0 forks source link

upgrade command do an install #127

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. call "opkg-cl upgrade PACKAGE_NAME"
2. PACKAGE_NAME is a not installed package

What is the expected output?
I expected to get an error message, that the package is not installed yet.

What do you see instead?
The package will be installed like as I do an "opkg-cl install ..."

What version of the product are you using? On what operating system?
0.2.1 on Linux

Please provide any additional information below.

Original issue reported on code.google.com by muuscl...@gmail.com on 20 Apr 2014 at 8:59

GoogleCodeExporter commented 8 years ago
I'm reticent to change this on the 0.2.x branch as some people may expect the 
current behaviour. I agree it's wrong though and I'll look at fixing it on the 
development branch.

Original comment by paul.betafive on 21 Apr 2014 at 2:56

GoogleCodeExporter commented 8 years ago
I've fixed this on the master branch and added a regression test.

Original comment by paul.betafive on 22 Apr 2014 at 11:44