Added check for package name starting with number

This commit is contained in:
Alexander Taylor 2013-11-24 17:42:44 +00:00
parent 5a720e24c9
commit feff9c2b23

View file

@ -304,6 +304,10 @@ class Buildozer(object):
adderror('[app] "package.name" is missing')
if not get('app', 'source.dir', ''):
adderror('[app] "source.dir" is missing')
package_name = get('app', 'package.name', '')
if package_name[0] in map(str, range(10)):
adderror('[app] "package.name" may not start with a number.')
version = get('app', 'version', '')
version_regex = get('app', 'version.regex', '')