[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#797898: RFS: caffe/0.9999~rc2+git20150902+e8e660d3-1 [ITP]



On 09/06/2015 08:30 AM, Gianfranco Costamagna wrote:
> dpkg -s nvidia-cuda-toolkit | grep -o installed

"installed" is also part of the output of a non-installed package.

Still not 100% failproof alternative:
 19 ifeq (installed, $(shell dpkg -s nvidia-cuda-toolkit | grep Status | grep -o installed))

or (untested and I don't know if there are valid alternatives):

 19 if ($(shell dpkg -s nvidia-cuda-toolkit | grep -o "Status: install ok installed")

Greets
jre


Reply to: