From f971c65eef850f27bfaf66518039a292d8c83e66 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 11 Nov 2018 22:35:09 +0100 Subject: [PATCH] Fixed CI debian command order --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 82536aa..9f9f39f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,10 +71,6 @@ build_debian: - cp -r templates/ package/debian/matemat/usr/lib/matemat/templates/ - python3.6 setup.py egg_info install --root=package/debian/matemat/ --prefix=/usr --optimize=1 - cd package/debian - - sed -re 's$#!/usr/local/bin/python3.6$#!/usr/bin/python3.6$' -i matemat/usr/lib/matemat/matemat - - find matemat -type f -exec chmod 0644 {} \; - - find matemat -type d -exec chmod 755 {} \; - - chmod +x matemat/usr/lib/matemat/matemat - mkdir -p matemat/usr/lib/python3/dist-packages/ - rsync -a matemat/usr/lib/python3.6/site-packages/ matemat/usr/lib/python3/dist-packages/ - rm -rf matemat/usr/lib/python3.6/ @@ -82,6 +78,10 @@ build_debian: - find matemat/usr/lib/python3/dist-packages -name '*.pyc' -exec rm {} \; - mv matemat/usr/bin/matemat matemat/usr/lib/matemat/matemat - rm -rf matemat/usr/bin + - sed -re 's$#!/usr/local/bin/python3.6$#!/usr/bin/python3.6$' -i matemat/usr/lib/matemat/matemat + - find matemat -type f -exec chmod 0644 {} \; + - find matemat -type d -exec chmod 755 {} \; + - chmod +x matemat/usr/lib/matemat/matemat - dpkg-deb --build matemat - mv matemat.deb "matemat_${MATEMAT_VERSION}-1_all.deb" - sudo -u nobody lintian "matemat_${MATEMAT_VERSION}-1_all.deb"