On 12/05/2016 12:49 PM, Denis Silakov wrote:
"gdebi: command not found" comes from the following call in the install script:

  $PKGMNGR $pkgs || $FALLBACK_PKGMNGR $pkgs

We can suppress stderr here, but on the other hand we will loose potentially interesting messages in case when gdebi is present but fails to install a package.


Answering to myself - surely we can check for the presence of $PKGMNGR binary before calling it. Just need to think a bit about the best way to do this. Maybe smth like "(which $PKGMNGR && $PKGMNGR $pkgs)".


--
Regards,

Denis Silakov | Sr. Software Architect, Virtuozzo Linux Team Lid
Altufevskoe shosse, 44 | Moscow, Russia
Phone: +7 916-222-9437 | dsila...@virtuozzo.com
Skype: denis.silakov

Virtuozzo.com

_______________________________________________
Users mailing list
Users@openvz.org
https://lists.openvz.org/mailman/listinfo/users

Reply via email to