Commit 39f5baaf authored by Mathias Stelzer's avatar Mathias Stelzer

fix package name and moving build files

parent cad0f4cd
Source: python-django-model-permissions
Source: python3-django-model-permissions
Section: python
Priority: extra
Maintainer: Mathias Stelzer <knoppo@rolln.de>
......
......@@ -17,6 +17,7 @@ if sys.version_info[0] < 3:
# config
PROJECT_NAME = 'django-model-permissions'
PACKAGE_PATTERN = '^python3-' + PROJECT_NAME
BUILD_DEPENDS = [
'build-essential',
......@@ -222,15 +223,18 @@ def build(c):
c.run('debuild -us -uc')
print('build files:')
shutil.rmtree('build', ignore_errors=True)
os.mkdir('build')
dirname = os.path.dirname(__dirname__)
for filename in os.listdir(dirname):
if not filename.startswith(PROJECT_NAME):
if re.match(PACKAGE_PATTERN, filename) is None:
continue
path = os.path.join(dirname, filename)
if os.path.isdir(path):
continue
print(' ', os.path.join('build', filename))
shutil.move(path, 'build')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment