From 0bbc2d1ffac93753195aae441cf48828173ef885 Mon Sep 17 00:00:00 2001 From: XeN Date: Thu, 17 May 2012 04:31:25 +0200 Subject: [PATCH 1/5] added optification and debian package rename so that packages for fremantle and harmattan will be accepted by ovi store --- psa | 76 ++++++++++++++++++- templates/fremantle/setup.py.template | 2 +- .../templateproject.desktop.template | 2 +- templates/fremantle/templateproject.template | 4 +- templates/harmattan/setup.py.template | 6 +- .../templateproject.desktop.template | 2 +- templates/harmattan/templateproject.template | 4 +- tests/psa_commands_test.py | 18 +++-- 8 files changed, 94 insertions(+), 20 deletions(-) diff --git a/psa b/psa index d598907..83bcc07 100755 --- a/psa +++ b/psa @@ -1,4 +1,6 @@ #!/usr/bin/python +# -*- coding: 'utf-8' -*- + # This file is part of the PySide project. # # Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). @@ -51,6 +53,7 @@ import tempfile import subprocess import glob import pwd +import fileinput from contextlib import contextmanager from ConfigParser import ConfigParser @@ -439,8 +442,7 @@ class DebProject(QmlProject): cmd = 'python setup.py --command-packages=stdeb.command sdist_dsc' args = cmd.split() - execute_with_log(args, 'sdist-dsc.log', - on_error=BuildError('Failed to build initial package.')) + execute_with_log(args, 'sdist-dsc.log', on_error=BuildError('Failed to build initial package.')) # store packaging directory files = os.listdir(os.path.join(self.projectdir, 'deb_dist')) @@ -470,6 +472,7 @@ class DebProject(QmlProject): with open(control_file, 'w') as f: f.write(new_control) + # run dpkg-buildpackage cmd = 'dpkg-buildpackage -D -rfakeroot -uc -b' args = cmd.split() @@ -592,7 +595,7 @@ class DebProject(QmlProject): self.maintainer = os.getenv('DEBFULLNAME') else: # if there is no DEBFULLNAME environment variable, get full name from /etc/passwd - currentuser = pwd.getpwnam(os.getlogin()) + currentuser = pwd.getpwuid(os.getuid()) self.maintainer = currentuser.pw_gecos.split(',')[0] if os.getenv('DEBEMAIL') is not None: @@ -696,8 +699,14 @@ class Harmattan(DebProject): def execute_build(self): '''Overriden from DebProject''' + abs_debfile = super(Harmattan, self).execute_build() + # rename deb file to reflect target architecture + if subprocess.call(['mv', os.path.join(self.projectdir, 'deb_dist', abs_debfile), os.path.join(self.projectdir, 'deb_dist', abs_debfile[:-7] + 'armel.deb')]): + raise BuildError('Failed to repackage.') + abs_debfile = abs_debfile.replace('_all.deb', '_armel.deb') + self.add_credentials(abs_debfile) def add_credentials(self, abs_debfile): @@ -714,6 +723,18 @@ class Harmattan(DebProject): if not os.path.isfile(os.path.join(abs_tempdir, 'DEBIAN', 'control')): raise BuildError('Failed to find the control file for icon insertion') + # optify package if fremantle or harmattan + if subprocess.call(['mv', os.path.join(abs_tempdir, 'usr', 'bin'), os.path.join(abs_tempdir, 'opt', self.slug)]): + raise BuildError('Failed to optify the package') + + checksum_file = os.path.join(abs_tempdir, 'DEBIAN', 'md5sums') + with open(checksum_file, 'r') as f: + old_checksum = f.read() + + new_checksum = old_checksum.replace('usr/bin/', 'opt/' + self.slug + '/bin/') + with open(checksum_file, 'w') as f: + f.write(new_checksum) + self.create_digsums(abs_tempdir) if subprocess.call(['fakeroot', 'dpkg', '-b', abs_tempdir, abs_debfile]): @@ -724,6 +745,11 @@ class Harmattan(DebProject): finally: shutil.rmtree(abs_tempdir) + def update_md5sums(self, controlfile): + for line in fileinput.input(controlfile, inplace=1): + line = line.replace('usr/bin/', 'opt/' + self.slug + '/bin/') + sys.stdout.write(line) + def inject_credentials(self, abs_debfile, abs_tempdir): '''Adds the credential to the existing debian file @@ -804,6 +830,49 @@ class Fremantle(DebProject): DebProject.pre_build(self) self.check_py25() + def execute_build(self): + '''Overriden from DebProject''' + + abs_debfile = super(Fremantle, self).execute_build() + + # rename deb file to reflect target architecture + if subprocess.call(['mv', os.path.join(self.projectdir, 'deb_dist', abs_debfile), os.path.join(self.projectdir, 'deb_dist', abs_debfile[:-7] + 'armel.deb')]): + raise BuildError('Failed to repackage.') + abs_debfile = abs_debfile.replace('_all.deb', '_armel.deb') + + self.optify(abs_debfile) + + def optify(self, abs_debfile): + '''changes directory structure''' + abs_tempdir = tempfile.mkdtemp(prefix='psatmp') + + try: + if subprocess.call(['dpkg', '-x', abs_debfile, abs_tempdir]): + raise BuildError('Failed to extract the deb file for icon insertion') + + if subprocess.call(['dpkg-deb', '--control', abs_debfile, os.path.join(abs_tempdir, 'DEBIAN')]): + raise BuildError('Failed to extract the control file for icon insertion') + + if not os.path.isfile(os.path.join(abs_tempdir, 'DEBIAN', 'control')): + raise BuildError('Failed to find the control file for icon insertion') + + if subprocess.call(['mv', os.path.join(abs_tempdir, 'usr', 'bin'), os.path.join(abs_tempdir, 'opt', self.slug)]): + raise BuildError('Failed to optify the package') + + checksum_file = os.path.join(abs_tempdir, 'DEBIAN', 'md5sums') + with open(checksum_file, 'r') as f: + old_checksum = f.read() + + new_checksum = old_checksum.replace('usr/bin/', 'opt/' + self.slug + '/bin/') + with open(checksum_file, 'w') as f: + f.write(new_checksum) + + if subprocess.call(['fakeroot', 'dpkg', '-b', abs_tempdir, abs_debfile]): + raise BuildError('Failed to repackage.') + + finally: + shutil.rmtree(abs_tempdir) + def check_py25(self): '''Is python 2.5 available?''' try: @@ -811,7 +880,6 @@ class Fremantle(DebProject): except OSError: raise RequirementsError('Fremantle projects require python2.5') - # Had to reimplement this as the original method uses textwrap.fill # and messes up the formatting class PsaOptionParser(OptionParser): diff --git a/templates/fremantle/setup.py.template b/templates/fremantle/setup.py.template index 64dd2bc..5fdc831 100644 --- a/templates/fremantle/setup.py.template +++ b/templates/fremantle/setup.py.template @@ -13,4 +13,4 @@ setup(name="${PROJECT}", long_description=read('${PROJECT}.longdesc'), data_files=[('share/applications/hildon',['${PROJECT}.desktop']), ('share/icons', ['${PROJECT}.png']), - ('/opt/usr/share/${PROJECT}/qml', glob.glob('qml/*.qml')), ],) + ('/opt/${PROJECT}/qml', glob.glob('qml/*.qml')), ],) diff --git a/templates/fremantle/templateproject.desktop.template b/templates/fremantle/templateproject.desktop.template index cba0d88..4354dec 100644 --- a/templates/fremantle/templateproject.desktop.template +++ b/templates/fremantle/templateproject.desktop.template @@ -4,7 +4,7 @@ Version=1.0 Type=Application Terminal=false Name=${APPNAME} -Exec=/usr/bin/${PROJECT} +Exec=/opt/${PROJECT}/bin/${PROJECT} Icon=${PROJECT} X-Window-Icon= X-HildonDesk-ShowInToolbar=true diff --git a/templates/fremantle/templateproject.template b/templates/fremantle/templateproject.template index 0d0a909..08d3478 100755 --- a/templates/fremantle/templateproject.template +++ b/templates/fremantle/templateproject.template @@ -15,8 +15,8 @@ def main(): engine = view.engine() engine.quit.connect(sys.exit) - if os.path.exists('/opt/usr/share/${PROJECT}/qml'): - view.setSource('/opt/usr/share/${PROJECT}/qml/main.qml') + if os.path.exists('/opt/${PROJECT}/qml'): + view.setSource('/opt/${PROJECT}/qml/main.qml') else: view.setSource(os.path.join('qml','main.qml')) diff --git a/templates/harmattan/setup.py.template b/templates/harmattan/setup.py.template index 2b96df8..d72c97d 100644 --- a/templates/harmattan/setup.py.template +++ b/templates/harmattan/setup.py.template @@ -11,6 +11,6 @@ setup(name="${PROJECT}", maintainer_email="${EMAIL}", description="${DESC}", long_description=read('${PROJECT}.longdesc'), - data_files=[('share/applications',['${PROJECT}.desktop']), - ('share/icons/hicolor/64x64/apps', ['${PROJECT}.png']), - ('share/${PROJECT}/qml', glob.glob('qml/*.qml')), ],) + data_files=[('/usr/share/applications',['${PROJECT}.desktop']), + ('/usr/share/icons/hicolor/64x64/apps', ['${PROJECT}.png']), + ('/opt/${PROJECT}/qml', glob.glob('qml/*.qml')), ],) diff --git a/templates/harmattan/templateproject.desktop.template b/templates/harmattan/templateproject.desktop.template index 435985d..91f12b0 100644 --- a/templates/harmattan/templateproject.desktop.template +++ b/templates/harmattan/templateproject.desktop.template @@ -3,6 +3,6 @@ Encoding=UTF-8 Version=1.0 Type=Application Name=${APPNAME} -Exec=invoker --single-instance --type=e /usr/bin/${PROJECT} +Exec=invoker --single-instance --type=e /opt/${PROJECT}/bin/${PROJECT} Icon=/usr/share/icons/hicolor/64x64/apps/${PROJECT}.png Categories=${CATEGORY}; diff --git a/templates/harmattan/templateproject.template b/templates/harmattan/templateproject.template index 05bdde6..e7f916b 100755 --- a/templates/harmattan/templateproject.template +++ b/templates/harmattan/templateproject.template @@ -18,8 +18,8 @@ def main(): glw = QtOpenGL.QGLWidget() view.setViewport(glw) - if os.path.exists('/usr/share/${PROJECT}/qml'): - view.setSource('/usr/share/${PROJECT}/qml/main.qml') + if os.path.exists('/opt/${PROJECT}/qml'): + view.setSource('/opt/${PROJECT}/qml/main.qml') else: view.setSource(os.path.join('qml','main.qml')) diff --git a/tests/psa_commands_test.py b/tests/psa_commands_test.py index 6277e5f..054db62 100644 --- a/tests/psa_commands_test.py +++ b/tests/psa_commands_test.py @@ -187,7 +187,10 @@ def testInitCommandParameters(self): class BuildTest(PySideAssistantCommandsTest): + template = '' + def init_project(self, project, templatename): + self.template = templatename with working_directory(self.path): command = 'psa init %s %s > /dev/null' % (project, templatename) self.runShellCommand(command) @@ -195,7 +198,10 @@ def init_project(self, project, templatename): return os.path.join(self.path, project) def build_deb(self, project, path): - expected_deb = os.path.join(path, 'deb_dist', ('%s_0.1.0-1_all.deb' % project)) + if (self.template == 'harmattan') or (self.template == 'fremantle'): + expected_deb = os.path.join(path, 'deb_dist', ('%s_0.1.0-1_armel.deb' % project)) + else: + expected_deb = os.path.join(path, 'deb_dist', ('%s_0.1.0-1_all.deb' % project)) with working_directory(os.path.join(self.path, project)): command = 'psa build-deb > /dev/null' self.runShellCommand(command) @@ -264,11 +270,11 @@ def testBuildHarmattan(self): deb_contents['root'].append('./_aegis') deb_contents['control'].append('./digsigsums') - deb_contents['data'].append('./usr/bin/%s' % project) + deb_contents['data'].append('./opt/%s/bin/%s' % (project, project)) deb_contents['data'].append('./usr/share/applications/%s.desktop' % project) deb_contents['data'].append('./usr/share/icons/hicolor/64x64/apps/%s.png' % project) - deb_contents['data'].append('./usr/share/%s/qml/main.qml' % project) - deb_contents['data'].append('./usr/share/%s/qml/MainPage.qml' % project) + deb_contents['data'].append('./opt/%s/qml/main.qml' % project) + deb_contents['data'].append('./opt/%s/qml/MainPage.qml' % project) self.check_deb_contents(deb, deb_contents) @@ -281,10 +287,10 @@ def testBuildFremantle(self): deb_contents = self.base_debian_components() - deb_contents['data'].append('./usr/bin/%s' % project) + deb_contents['data'].append('./opt/%s/bin/%s' % (project, project)) deb_contents['data'].append('./usr/share/applications/hildon/%s.desktop' % project) deb_contents['data'].append('./usr/share/icons/%s.png' % project) - deb_contents['data'].append('./opt/usr/share/%s/qml/main.qml' % project) + deb_contents['data'].append('./opt/%s/qml/main.qml' % project) self.check_deb_contents(deb, deb_contents) From 7872a4ca9e68384712d2f825d9030feaf5e01bcc Mon Sep 17 00:00:00 2001 From: XeN Date: Thu, 17 May 2012 04:51:56 +0200 Subject: [PATCH 2/5] code cleanup --- psa | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/psa b/psa index 83bcc07..cafd3f8 100755 --- a/psa +++ b/psa @@ -53,7 +53,6 @@ import tempfile import subprocess import glob import pwd -import fileinput from contextlib import contextmanager from ConfigParser import ConfigParser @@ -442,7 +441,8 @@ class DebProject(QmlProject): cmd = 'python setup.py --command-packages=stdeb.command sdist_dsc' args = cmd.split() - execute_with_log(args, 'sdist-dsc.log', on_error=BuildError('Failed to build initial package.')) + execute_with_log(args, 'sdist-dsc.log', + on_error=BuildError('Failed to build initial package.')) # store packaging directory files = os.listdir(os.path.join(self.projectdir, 'deb_dist')) @@ -472,7 +472,6 @@ class DebProject(QmlProject): with open(control_file, 'w') as f: f.write(new_control) - # run dpkg-buildpackage cmd = 'dpkg-buildpackage -D -rfakeroot -uc -b' args = cmd.split() From 576c2ff4bc28c562931422e392f3777347294cf7 Mon Sep 17 00:00:00 2001 From: XeN Date: Fri, 18 May 2012 04:31:16 +0200 Subject: [PATCH 3/5] fixed the version number issue for harmattan packages. -1 removed. --- psa | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psa b/psa index cafd3f8..2695f3f 100755 --- a/psa +++ b/psa @@ -702,9 +702,9 @@ class Harmattan(DebProject): abs_debfile = super(Harmattan, self).execute_build() # rename deb file to reflect target architecture - if subprocess.call(['mv', os.path.join(self.projectdir, 'deb_dist', abs_debfile), os.path.join(self.projectdir, 'deb_dist', abs_debfile[:-7] + 'armel.deb')]): + if subprocess.call(['mv', os.path.join(self.projectdir, 'deb_dist', abs_debfile), os.path.join(self.projectdir, 'deb_dist', abs_debfile[:-10] + '_armel.deb')]): raise BuildError('Failed to repackage.') - abs_debfile = abs_debfile.replace('_all.deb', '_armel.deb') + abs_debfile = abs_debfile[:-10] + '_armel.deb' self.add_credentials(abs_debfile) From 37d6f8b7e7012e6f8588a6b2e29d7259ef4a8af4 Mon Sep 17 00:00:00 2001 From: XeN Date: Fri, 18 May 2012 05:20:41 +0200 Subject: [PATCH 4/5] fixed optification of additional python related files and fixed namespace for harmattan qml templates. --- psa | 45 ++++++++++++------- templates/harmattan/qml/MainPage.qml.template | 2 +- templates/harmattan/qml/main.qml.template | 2 +- 3 files changed, 31 insertions(+), 18 deletions(-) diff --git a/psa b/psa index 2695f3f..484a3a3 100755 --- a/psa +++ b/psa @@ -53,6 +53,7 @@ import tempfile import subprocess import glob import pwd +import fileinput from contextlib import contextmanager from ConfigParser import ConfigParser @@ -441,8 +442,7 @@ class DebProject(QmlProject): cmd = 'python setup.py --command-packages=stdeb.command sdist_dsc' args = cmd.split() - execute_with_log(args, 'sdist-dsc.log', - on_error=BuildError('Failed to build initial package.')) + execute_with_log(args, 'sdist-dsc.log', on_error=BuildError('Failed to build initial package.')) # store packaging directory files = os.listdir(os.path.join(self.projectdir, 'deb_dist')) @@ -472,6 +472,7 @@ class DebProject(QmlProject): with open(control_file, 'w') as f: f.write(new_control) + # run dpkg-buildpackage cmd = 'dpkg-buildpackage -D -rfakeroot -uc -b' args = cmd.split() @@ -722,17 +723,25 @@ class Harmattan(DebProject): if not os.path.isfile(os.path.join(abs_tempdir, 'DEBIAN', 'control')): raise BuildError('Failed to find the control file for icon insertion') - # optify package if fremantle or harmattan + # optify package if subprocess.call(['mv', os.path.join(abs_tempdir, 'usr', 'bin'), os.path.join(abs_tempdir, 'opt', self.slug)]): raise BuildError('Failed to optify the package') + if subprocess.call(['mkdir', '-p', os.path.join(abs_tempdir, 'opt', 'usr', 'share')]): + raise BuildError('Failed to optify the package') + if subprocess.call(['mv', os.path.join(abs_tempdir, 'usr', 'share', 'pyshared'), os.path.join(abs_tempdir, 'opt', 'usr', 'share')]): + raise BuildError('Failed to optify the package') + if subprocess.call(['mv', os.path.join(abs_tempdir, 'usr', 'share', 'python-support'), os.path.join(abs_tempdir, 'opt', 'usr', 'share')]): + raise BuildError('Failed to optify the package') checksum_file = os.path.join(abs_tempdir, 'DEBIAN', 'md5sums') with open(checksum_file, 'r') as f: - old_checksum = f.read() + fcontent = f.read() - new_checksum = old_checksum.replace('usr/bin/', 'opt/' + self.slug + '/bin/') + fcontent = fcontent.replace('usr/bin/', 'opt/' + self.slug + '/bin/') + fcontent = fcontent.replace('usr/share/pyshared/', 'opt/usr/share/pyshared/') + fcontent = fcontent.replace('usr/share/python-support/', 'opt/usr/share/python-support/') with open(checksum_file, 'w') as f: - f.write(new_checksum) + f.write(fcontent) self.create_digsums(abs_tempdir) @@ -744,11 +753,6 @@ class Harmattan(DebProject): finally: shutil.rmtree(abs_tempdir) - def update_md5sums(self, controlfile): - for line in fileinput.input(controlfile, inplace=1): - line = line.replace('usr/bin/', 'opt/' + self.slug + '/bin/') - sys.stdout.write(line) - def inject_credentials(self, abs_debfile, abs_tempdir): '''Adds the credential to the existing debian file @@ -835,9 +839,9 @@ class Fremantle(DebProject): abs_debfile = super(Fremantle, self).execute_build() # rename deb file to reflect target architecture - if subprocess.call(['mv', os.path.join(self.projectdir, 'deb_dist', abs_debfile), os.path.join(self.projectdir, 'deb_dist', abs_debfile[:-7] + 'armel.deb')]): + if subprocess.call(['mv', os.path.join(self.projectdir, 'deb_dist', abs_debfile), os.path.join(self.projectdir, 'deb_dist', abs_debfile[:-10] + '_armel.deb')]): raise BuildError('Failed to repackage.') - abs_debfile = abs_debfile.replace('_all.deb', '_armel.deb') + abs_debfile = abs_debfile[:-10] + '_armel.deb' self.optify(abs_debfile) @@ -855,16 +859,25 @@ class Fremantle(DebProject): if not os.path.isfile(os.path.join(abs_tempdir, 'DEBIAN', 'control')): raise BuildError('Failed to find the control file for icon insertion') + # optify package if subprocess.call(['mv', os.path.join(abs_tempdir, 'usr', 'bin'), os.path.join(abs_tempdir, 'opt', self.slug)]): raise BuildError('Failed to optify the package') + if subprocess.call(['mkdir', '-p', os.path.join(abs_tempdir, 'opt', 'usr', 'share')]): + raise BuildError('Failed to optify the package') + if subprocess.call(['mv', os.path.join(abs_tempdir, 'usr', 'share', 'pyshared'), os.path.join(abs_tempdir, 'opt', 'usr', 'share')]): + raise BuildError('Failed to optify the package') + if subprocess.call(['mv', os.path.join(abs_tempdir, 'usr', 'share', 'python-support'), os.path.join(abs_tempdir, 'opt', 'usr', 'share')]): + raise BuildError('Failed to optify the package') checksum_file = os.path.join(abs_tempdir, 'DEBIAN', 'md5sums') with open(checksum_file, 'r') as f: - old_checksum = f.read() + fcontent = f.read() - new_checksum = old_checksum.replace('usr/bin/', 'opt/' + self.slug + '/bin/') + fcontent = fcontent.replace('usr/bin/', 'opt/' + self.slug + '/bin/') + fcontent = fcontent.replace('usr/share/pyshared/', 'opt/usr/share/pyshared/') + fcontent = fcontent.replace('usr/share/python-support/', 'opt/usr/share/python-support/') with open(checksum_file, 'w') as f: - f.write(new_checksum) + f.write(fcontent) if subprocess.call(['fakeroot', 'dpkg', '-b', abs_tempdir, abs_debfile]): raise BuildError('Failed to repackage.') diff --git a/templates/harmattan/qml/MainPage.qml.template b/templates/harmattan/qml/MainPage.qml.template index ead32f2..fca550e 100644 --- a/templates/harmattan/qml/MainPage.qml.template +++ b/templates/harmattan/qml/MainPage.qml.template @@ -1,5 +1,5 @@ import QtQuick 1.1 -import com.meego 1.0 +import com.nokia.meego 1.0 Page { id: mainPage diff --git a/templates/harmattan/qml/main.qml.template b/templates/harmattan/qml/main.qml.template index 5c8b167..f508507 100644 --- a/templates/harmattan/qml/main.qml.template +++ b/templates/harmattan/qml/main.qml.template @@ -1,5 +1,5 @@ import QtQuick 1.1 -import com.meego 1.0 +import com.nokia.meego 1.0 PageStackWindow { id: appWindow From 47c08fe04115c2f4dd0401c5e8830e1aa36507ed Mon Sep 17 00:00:00 2001 From: XeN Date: Wed, 6 Jun 2012 02:05:41 +0200 Subject: [PATCH 5/5] Updated my fixes to the newest upstream version --- psa | 7 +++---- templates/harmattan/qml/MainPage.qml.template | 2 +- templates/harmattan/qml/main.qml.template | 2 +- tests/psa_commands_test.py | 1 - 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/psa b/psa index 484a3a3..76e29ae 100755 --- a/psa +++ b/psa @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: 'utf-8' -*- # This file is part of the PySide project. @@ -472,7 +472,6 @@ class DebProject(QmlProject): with open(control_file, 'w') as f: f.write(new_control) - # run dpkg-buildpackage cmd = 'dpkg-buildpackage -D -rfakeroot -uc -b' args = cmd.split() @@ -595,7 +594,7 @@ class DebProject(QmlProject): self.maintainer = os.getenv('DEBFULLNAME') else: # if there is no DEBFULLNAME environment variable, get full name from /etc/passwd - currentuser = pwd.getpwuid(os.getuid()) + currentuser = pwd.getpwnam(os.getlogin()) self.maintainer = currentuser.pw_gecos.split(',')[0] if os.getenv('DEBEMAIL') is not None: @@ -699,7 +698,6 @@ class Harmattan(DebProject): def execute_build(self): '''Overriden from DebProject''' - abs_debfile = super(Harmattan, self).execute_build() # rename deb file to reflect target architecture @@ -892,6 +890,7 @@ class Fremantle(DebProject): except OSError: raise RequirementsError('Fremantle projects require python2.5') + # Had to reimplement this as the original method uses textwrap.fill # and messes up the formatting class PsaOptionParser(OptionParser): diff --git a/templates/harmattan/qml/MainPage.qml.template b/templates/harmattan/qml/MainPage.qml.template index fca550e..ead32f2 100644 --- a/templates/harmattan/qml/MainPage.qml.template +++ b/templates/harmattan/qml/MainPage.qml.template @@ -1,5 +1,5 @@ import QtQuick 1.1 -import com.nokia.meego 1.0 +import com.meego 1.0 Page { id: mainPage diff --git a/templates/harmattan/qml/main.qml.template b/templates/harmattan/qml/main.qml.template index f508507..5c8b167 100644 --- a/templates/harmattan/qml/main.qml.template +++ b/templates/harmattan/qml/main.qml.template @@ -1,5 +1,5 @@ import QtQuick 1.1 -import com.nokia.meego 1.0 +import com.meego 1.0 PageStackWindow { id: appWindow diff --git a/tests/psa_commands_test.py b/tests/psa_commands_test.py index 054db62..948080d 100644 --- a/tests/psa_commands_test.py +++ b/tests/psa_commands_test.py @@ -186,7 +186,6 @@ def testInitCommandParameters(self): class BuildTest(PySideAssistantCommandsTest): - template = '' def init_project(self, project, templatename):