Merge lp:~justinmcp/aptdaemon/1352654 into lp:aptdaemon

Proposed by Justin McPherson
Status: Needs review
Proposed branch: lp:~justinmcp/aptdaemon/1352654
Merge into: lp:aptdaemon
Diff against target: 34 lines (+2/-4)
2 files modified
aptdaemon/pkcompat.py (+1/-3)
aptdaemon/worker/aptworker.py (+1/-1)
To merge this branch: bzr merge lp:~justinmcp/aptdaemon/1352654
Reviewer Review Type Date Requested Status
Robert Ancell (community) Approve
Iain Lane (community) Approve
Aptdaemon Developers Pending
Review via email: mp+243354@code.launchpad.net

Commit message

 #1352654 No longer able to install packages with PackageKit

  Revert attempt to add archive information, (was adding Origin).

  The correct information for the apt package specification is not available at
  this point in the code. Revert to an earlier version that more correctly
  specifies package.

To post a comment you must log in.
lp:~justinmcp/aptdaemon/1352654 updated
985. By Justin McPherson <justin@phablet-dev>

Merge from trunk.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

This merge has a number of unrelated changes but merging revision 984 fixes the problem for me in wily.

review: Needs Fixing
Revision history for this message
Iain Lane (laney) wrote :

The other changes are necessary. I'll review/upload.

Revision history for this message
Iain Lane (laney) wrote :

Sorry I forgot until seb pinged me. :(

The "data" field, per the documentation, is "For a remote, not-installed package the data field should be set as the repository identifier or repository name." - that means that we shouldn't use it after a "/" to be passed to apt. That specifies a release.

The other fixes are syntax and crash fixes. Thanks! Really uploading now! Could someone merge this?

review: Approve
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Changing to approved as Laney says the changes are necessary.

review: Approve
Revision history for this message
Sebastien Bacher (seb128) wrote :

the changes have been uploaded to wily

Unmerged revisions

985. By Justin McPherson <justin@phablet-dev>

Merge from trunk.

984. By Justin McPherson <justin@phablet-dev>

#1352654 No longer able to install packages with PackageKit

Revert attempt to add archive information, (was adding Origin).

The correct information for the apt package specification is not available at
this point in the code. Revert to an earlier version that more correctly
specifies package.

983. By Justin McPherson <justin@phablet-dev>

Remove trailing comma.

Was causing a TypeError.

982. By Justin McPherson <justin@phablet-dev>

Fix resolution of constant.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'aptdaemon/pkcompat.py'
--- aptdaemon/pkcompat.py 2014-06-26 07:07:15 +0000
+++ aptdaemon/pkcompat.py 2015-04-13 01:43:02 +0000
@@ -391,7 +391,7 @@
391 distro, version, _codename = platform.dist()391 distro, version, _codename = platform.dist()
392 self._distro_id = "%s;%s;%s" % (distro or "unknown",392 self._distro_id = "%s;%s;%s" % (distro or "unknown",
393 version or "unknown",393 version or "unknown",
394 NATIVE_ARCH)394 self.queue.worker.NATIVE_ARCH)
395 return self._distro_id395 return self._distro_id
396396
397 def _on_network_state_changed(self, mon, state):397 def _on_network_state_changed(self, mon, state):
@@ -1900,8 +1900,6 @@
1900 id += ":%s" % arch1900 id += ":%s" % arch
1901 if version:1901 if version:
1902 id += "=%s" % version1902 id += "=%s" % version
1903 if data and data not in ["local", "installed"]:
1904 id += "/%s" % data
1905 return id1903 return id
19061904
1907 def _get_merged_trans(self, role, pkg_ids=None, pkg_type=None,1905 def _get_merged_trans(self, role, pkg_ids=None, pkg_type=None,
19081906
=== modified file 'aptdaemon/worker/aptworker.py'
--- aptdaemon/worker/aptworker.py 2014-06-26 07:13:49 +0000
+++ aptdaemon/worker/aptworker.py 2015-04-13 01:43:02 +0000
@@ -1482,7 +1482,7 @@
1482 key = "APT::Periodic::AutocleanInterval"1482 key = "APT::Periodic::AutocleanInterval"
1483 return apt_pkg.config.find_i(key, 0)1483 return apt_pkg.config.find_i(key, 0)
1484 elif option == "UnattendedUpgrade":1484 elif option == "UnattendedUpgrade":
1485 key = "APT::Periodic::Unattended-Upgrade",1485 key = "APT::Periodic::Unattended-Upgrade"
1486 return apt_pkg.config.find_b(key, False)1486 return apt_pkg.config.find_b(key, False)
1487 elif option == "GetPopconParticipation":1487 elif option == "GetPopconParticipation":
1488 return self._get_popcon_pariticipation()1488 return self._get_popcon_pariticipation()

Subscribers

People subscribed via source and target branches

to status/vote changes: