Message ID | 1325289569$267@local |
---|---|
State | New |
Headers | show |
On 30 December 2011 23:59, Sebastian Herbszt <herbszt@gmx.de> wrote: > Make python mandatory. > +if has $python; then > + : > +else > + echo "Python not found. Use --python=/path/to/python" > + exit 1 > fi > > if test -z "$target_list" ; then I know you've just removed the outer condition here, but while we're fiddling with it, wouldn't if ! has "$python"; then echo "Python not found etc" fi be better? -- PMM
Peter Maydell wrote: >On 30 December 2011 23:59, Sebastian Herbszt <herbszt@gmx.de> wrote: >> Make python mandatory. >> >> +if has $python; then >> + : >> +else >> + echo "Python not found. Use --python=/path/to/python" >> + exit 1 >> fi >> >> if test -z "$target_list" ; then > > I know you've just removed the outer condition here, but > while we're fiddling with it, wouldn't > if ! has "$python"; then > echo "Python not found etc" > fi > > be better? > > -- PMM I just restored it to the state it was before commit "guest agent: add --enable-guest-agent config option". This check was added in commit "Let users select their pythons". Sebastian
diff --git a/configure b/configure index 640e815..6c2a1b4 100755 --- a/configure +++ b/configure @@ -1185,13 +1185,11 @@ if test "$solaris" = "yes" ; then fi fi -if test "$guest_agent" != "no" ; then - if has $python; then - : - else - echo "Python not found. Use --python=/path/to/python" - exit 1 - fi +if has $python; then + : +else + echo "Python not found. Use --python=/path/to/python" + exit 1 fi if test -z "$target_list" ; then
Make python mandatory. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de> --- configure | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-)