Merge lp:~barry/gdebi/lp1301422 into lp:gdebi

Proposed by Barry Warsaw
Status: Merged
Merged at revision: 472
Proposed branch: lp:~barry/gdebi/lp1301422
Merge into: lp:gdebi
Diff against target: 66 lines (+14/-6)
2 files modified
GDebi/GDebiCli.py (+6/-6)
debian/changelog (+8/-0)
To merge this branch: bzr merge lp:~barry/gdebi/lp1301422
Reviewer Review Type Date Requested Status
Dimitri John Ledkov Approve
Michael Vogt Approve
Review via email: mp+214257@code.launchpad.net

Description of the change

  * Add a universal_newlines=True to Popen command to get a proper unicode
    object. (LP: #1301422)
  * Whitespace normalization.

To post a comment you must log in.
Revision history for this message
Michael Vogt (mvo) wrote :

Looks good, +1 - thanks!

review: Approve
Revision history for this message
Dimitri John Ledkov (xnox) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'GDebi/GDebiCli.py'
2--- GDebi/GDebiCli.py 2013-08-03 10:59:52 +0000
3+++ GDebi/GDebiCli.py 2014-04-04 14:03:18 +0000
4@@ -68,8 +68,8 @@
5
6 def open(self, file):
7 try:
8- if (file.endswith(".deb") or
9- "Debian binary package" in Popen(["file", file], stdout=PIPE).communicate()[0]):
10+ if (file.endswith(".deb") or
11+ "Debian binary package" in Popen(["file", file], stdout=PIPE, universal_newlines=True).communicate()[0]):
12 self._deb = DebPackage(file, self._cache)
13 elif (file.endswith(".dsc") or
14 os.path.basename(file) == "control"):
15@@ -90,7 +90,7 @@
16 sys.stderr.write(self._deb._failure_string + "\n")
17 return False
18 return True
19-
20+
21 def show_description(self):
22 try:
23 print(self._deb["Description"])
24@@ -114,7 +114,7 @@
25 s += pkgname + " "
26 s += "\n"
27 if len(install) > 0:
28- s += _("Requires the installation of the following packages: ")
29+ s += _("Requires the installation of the following packages: ")
30 for pkgname in install:
31 s += pkgname + " "
32 s += "\n"
33@@ -133,7 +133,7 @@
34 return 1
35
36 # install the package itself
37- if self._deb.filename.endswith(".dsc"):
38+ if self._deb.filename.endswith(".dsc"):
39 # FIXME: add option to only install build-dependencies
40 # (or build+install the deb) and then enable
41 # this code
42@@ -145,7 +145,7 @@
43 return 0
44 else:
45 return call(["dpkg","--auto-deconfigure", "-i",self._deb.filename])
46-
47+
48
49 if __name__ == "__main__":
50 app = GDebiCli()
51
52=== modified file 'debian/changelog'
53--- debian/changelog 2014-04-02 09:52:37 +0000
54+++ debian/changelog 2014-04-04 14:03:18 +0000
55@@ -1,3 +1,11 @@
56+gdebi (0.9.5.2) unstable; urgency=medium
57+
58+ * Add a universal_newlines=True to Popen command to get a proper unicode
59+ object. (LP: #1301422)
60+ * Whitespace normalization.
61+
62+ -- Barry Warsaw <barry@ubuntu.com> Fri, 04 Apr 2014 09:48:25 -0400
63+
64 gdebi (0.9.5.1) unstable; urgency=medium
65
66 * Lower required python3 version to 3.3. As 3.4 is not needed, and

Subscribers

People subscribed via source and target branches

to status/vote changes: