From 45053c6d84d0d1693442b6c3f63342042ba4fe83 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 9 Feb 2012 19:31:30 +0100 Subject: [PATCH] allow pip to be non existent during explorer stage Signed-off-by: Nico Schottelius --- conf/type/__package_pip/explorer/state | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/conf/type/__package_pip/explorer/state b/conf/type/__package_pip/explorer/state index 3a086e58..7886a46b 100644 --- a/conf/type/__package_pip/explorer/state +++ b/conf/type/__package_pip/explorer/state @@ -35,14 +35,14 @@ else pip="pip" fi -# which is not posix, but command is :-) +# If there is no pip, it may get created from somebody else. +# If it will be created, there is probably no package installed. if ! command -v "$pip" >/dev/null 2>&1; then - echo "No usable pip found at path \"$pip\"" >&2 - exit 1 -fi - -if "$pip" freeze | grep -i -q "^$name=="; then - echo present -else echo absent +else + if "$pip" freeze | grep -i -q "^$name=="; then + echo present + else + echo absent + fi fi