Stop at the first section when parsing project.conf

This commit is contained in:
Pierre Pronchery 2012-10-13 15:42:22 +00:00
parent 68cb569320
commit bc26b29c37

View File

@ -176,6 +176,9 @@ _package_guess_name()
"version="*)
VERSION="${line#version=}"
;;
"["*)
break
;;
esac
done < "$PROJECTCONF"
[ -z "$PACKAGE" -o -z "$VERSION" ] && return 2