Re: pkg_add doesn't exit with a failure code if non-existant package installation is attempted

2016-08-16 Thread Patrik Lundin
On Sun, Aug 14, 2016 at 09:27:49PM +0300, Mart Tõnso wrote: > Hello Bugs, > > Stumbled upon this: > > # pkg_add nonexistantpackage || echo false && echo true > Can't find nonexistantpackage > true > > This makes it impossible to detect in an external script/program that > package installation fa

Re: pkg_add doesn't exit with a failure code if non-existant package installation is attempted

2016-08-15 Thread Mart Tõnso
Yes, it would work as a one-off workaround, but still leaves the underlying inconsistency. pkg_remove reports errors very nicely if you pass invalid package names as a parameter and this behaviour "makes sense". Regards, Mart On Sun, Aug 14, 2016 at 10:32 PM, Anthony J. Bentley wrote: > Mart Tõ

Re: pkg_add doesn't exit with a failure code if non-existant package installation is attempted

2016-08-14 Thread Anthony J. Bentley
Mart Tõnso writes: > Hello Bugs, > > Stumbled upon this: > > # pkg_add nonexistantpackage || echo false && echo true > Can't find nonexistantpackage > true > > This makes it impossible to detect in an external script/program that > package installation failed when an invalid package name was pas

pkg_add doesn't exit with a failure code if non-existant package installation is attempted

2016-08-14 Thread Mart Tõnso
Hello Bugs, Stumbled upon this: # pkg_add nonexistantpackage || echo false && echo true Can't find nonexistantpackage true This makes it impossible to detect in an external script/program that package installation failed when an invalid package name was passed to pkg_add. I think it would make s