wendellchao / opkg

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

Opkg flag always returns success #160

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Run opkg flag with an invalid flag
   opkg flag badflag A
2.Opkg will return no error (0) and a misleading message that makes you think 
the operation succeeded

"Setting flags for package A to badflag."

Package A will remain unchanged.

What is the expected output? What do you see instead?

Opkg flag only supports the following flags = 
hold|noprune|user|ok|installed|unpacked

It should validate the input and report an error if invalid.

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

Please provide any additional information below.

Original issue reported on code.google.com by alejandr...@gmail.com on 23 Jun 2015 at 8:16