Merge lp:~mvo/qtcreator-plugin-ubuntu/lp1360582 into lp:qtcreator-plugin-ubuntu

Proposed by Michael Vogt
Status: Merged
Approved by: Timo Jyrinki
Approved revision: 253
Merged at revision: 263
Proposed branch: lp:~mvo/qtcreator-plugin-ubuntu/lp1360582
Merge into: lp:qtcreator-plugin-ubuntu
Diff against target: 24 lines (+3/-2)
2 files modified
share/qtcreator/ubuntu/scripts/qtc_device_applaunch.py (+2/-1)
share/qtcreator/ubuntu/scripts/qtc_project_click_deploy (+1/-1)
To merge this branch: bzr merge lp:~mvo/qtcreator-plugin-ubuntu/lp1360582
Reviewer Review Type Date Requested Status
Zoltan Balogh Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+232645@code.launchpad.net

Commit message

Run pkcon with --allow-untrusted (LP: #1360582).

Description of the change

This add --allow-untrusted to the pkcon command. There is a also a addtional commit with a drive-by cleanup. Please test as I couldn't find how to run the testsuite (its not described in the README).

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michael Vogt (mvo) wrote :

This needs to land together with lp:~mvo/click/lp1360582-honor-enum-only-trusted

Revision history for this message
Zoltan Balogh (bzoltan) wrote :

The new feature of deploying Scopes on the device required some refactoring of the qtc_device_applaunch.py script ->

https://code.launchpad.net/~zeller-benjamin/qtcreator-plugin-ubuntu/scoperemoterun/+merge/233067

Please check for possible merge conflicts.

review: Needs Fixing
251. By Michael Vogt

merged trunk and resolved conflicts

Revision history for this message
Michael Vogt (mvo) wrote :

I resolved the conflicts now, please re-review.

Fwiw, not having this is blocking signed click packages. So pushing a conflicting branch ahead of this one even though this branch is a) ready since a couple of days b) trivial c) unblocks a important feature is really not ideal IMO.

Colin pointed out that this can land independent of lp:~mvo/click/lp1360582-honor-enum-only-trusted because click will right run with "--allow-untrusted" all the time, so having this land first is fine (just the other way around is not possible).

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

OK

review: Approve
Revision history for this message
Zoltan Balogh (bzoltan) :
review: Needs Fixing
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

Do we need packagekit-tools dependency for the qtcreator-plugin-ubuntu? The qtc_device_applaunch is only executed on the phone.

Also the version you need does not exist on LTS. So the packagekit-tools (>= 0.8.17-4ubuntu2) would break the SDK on Trusty where the packagekit-tools is on 0.8.12.

252. By Michael Vogt

debian/control: remove packagekit-tools dependency again as this is only needed on the phone, not the SDK itself (thanks to bzoltan)

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks Zoltan! I fixed this now and pushed a new version.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

OK

review: Approve
253. By Michael Vogt

share/qtcreator/ubuntu/scripts/qtc_project_click_deploy: add missing "--allow-untrusted"

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'share/qtcreator/ubuntu/scripts/qtc_device_applaunch.py'
--- share/qtcreator/ubuntu/scripts/qtc_device_applaunch.py 2014-09-02 14:35:13 +0000
+++ share/qtcreator/ubuntu/scripts/qtc_device_applaunch.py 2014-09-08 09:39:04 +0000
@@ -350,7 +350,8 @@
350#we have all informations, now install the click package350#we have all informations, now install the click package
351#@TODO check if its already installed351#@TODO check if its already installed
352352
353success = subprocess.call(["pkcon","install-local",options.clickPck,"-p"])353success = subprocess.call(
354 ["pkcon","--allow-untrusted","install-local",options.clickPck,"-p"])
354if success != 0:355if success != 0:
355 print("Installing the application failed",flush=True)356 print("Installing the application failed",flush=True)
356 sys.exit(1)357 sys.exit(1)
357358
=== modified file 'share/qtcreator/ubuntu/scripts/qtc_project_click_deploy'
--- share/qtcreator/ubuntu/scripts/qtc_project_click_deploy 2014-05-21 09:13:18 +0000
+++ share/qtcreator/ubuntu/scripts/qtc_project_click_deploy 2014-09-08 09:39:04 +0000
@@ -80,5 +80,5 @@
80do80do
81 echo "Installing $FILE to device.."81 echo "Installing $FILE to device.."
82 # note adb shell and adb_shell are two different things, adb_shell comes from functions.inc82 # note adb shell and adb_shell are two different things, adb_shell comes from functions.inc
83 adb_shell sudo -H -u ${TARGET_DEVICE_USERNAME} pkcon install-local ${TARGET_DEVICE_HOME}/${FILE}83 adb_shell sudo -H -u ${TARGET_DEVICE_USERNAME} pkcon install-local --allow-untrusted ${TARGET_DEVICE_HOME}/${FILE}
84done84done

Subscribers

People subscribed via source and target branches

to all changes: