Merge lp:~lfaraone/ubuntu/lucid/mirage/lp538906 into lp:ubuntu/lucid/mirage

Proposed by Luke Faraone
Status: Merged
Merged at revision: not available
Proposed branch: lp:~lfaraone/ubuntu/lucid/mirage/lp538906
Merge into: lp:ubuntu/lucid/mirage
Diff against target: 285 lines (+144/-18)
11 files modified
debian/changelog (+23/-0)
debian/control (+5/-4)
debian/menu (+6/-0)
debian/patches/.dpkg-source-applied (+3/-0)
debian/patches/halfSelected.patch (+12/-0)
debian/patches/remove_gimp_remote.patch (+16/-0)
debian/patches/series (+3/-0)
debian/patches/xdg_specification.patch (+60/-0)
debian/rules (+3/-2)
debian/source/format (+1/-0)
mirage.py (+12/-12)
To merge this branch: bzr merge lp:~lfaraone/ubuntu/lucid/mirage/lp538906
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Ubuntu branches Pending
Review via email: mp+21426@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Generally OK, I changed a few things though:

 - added (LP: #538906)
 - ran 'update-maintainer' (from ubuntu-dev-tools)
 - spelled 'verison' as 'version'
 - mentioned that debian/control was changed for the python version change too

Good work!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2009-06-12 14:30:25 +0000
+++ debian/changelog 2010-03-16 03:29:21 +0000
@@ -1,3 +1,26 @@
1mirage (0.9.3-5ubuntu1) lucid; urgency=low
2
3 * Bump Python verison in debian/rules to 2.6.
4
5 -- Luke Faraone <luke@faraone.cc> Mon, 15 Mar 2010 21:59:00 -0400
6
7mirage (0.9.3-5) unstable; urgency=low
8
9 * Fix dh_pysupport call, so only python-support controlled files are
10 installed (Closes: #566038)
11 * Fix half-selected images (Closes: #536285). Thanks to Evgeni Golov patch
12 * Provide a mirage menu item (Closes: #550023)
13 * Add XDG base directory specification support (Closes: #535816).
14 Thanks to Jakub Wilk <ubanus@users.sf.net> patch
15 * Add suggest gimp, imagemagick, menu (Closes: #535822)
16 * By default, Ctrl+E is bound to the gimp-remote-2.4 command, which is no
17 longer available in sid (Closes: #535817)
18 Thanks to Jakub Wilk <ubanus@users.sf.net> patch
19 * Switch to dpkg-source 3.0 (quilt) format
20 * Bump Standards-Version to 3.8.4
21
22 -- Xavier Oswald <xoswald@debian.org> Wed, 10 Feb 2010 00:29:30 +0100
23
1mirage (0.9.3-4) unstable; urgency=low24mirage (0.9.3-4) unstable; urgency=low
225
3 * Remove forgotten DM flag26 * Remove forgotten DM flag
427
=== modified file 'debian/control'
--- debian/control 2009-06-12 14:30:25 +0000
+++ debian/control 2010-03-16 03:29:21 +0000
@@ -2,14 +2,15 @@
2Section: graphics2Section: graphics
3Priority: extra3Priority: extra
4Maintainer: Xavier Oswald <xoswald@debian.org>4Maintainer: Xavier Oswald <xoswald@debian.org>
5Build-Depends: cdbs (>= 0.4.51), debhelper (>= 7), python-support (>= 0.7.6), python-dev (>= 2.5), python-gtk2-dev5Build-Depends: cdbs (>= 0.4.51), debhelper (>= 7), python-support (>= 0.7.6), python-dev (>= 2.6), python-gtk2-dev, quilt
6Standards-Version: 3.8.16Standards-Version: 3.8.4
7Homepage: http://mirageiv.berlios.de/7Homepage: http://mirageiv.berlios.de/
8XS-Python-Version: current8XS-Python-Version: 2.6
99
10Package: mirage10Package: mirage
11Architecture: any11Architecture: any
12Depends: ${misc:Depends}, ${shlibs:Depends}, ${python:Depends}, python-gtk212Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-gtk2
13Suggests: gimp, imagemagick, menu
13Description: fast and simple GTK+ image viewer14Description: fast and simple GTK+ image viewer
14 Mirage is ideal for users who wish to keep their computers15 Mirage is ideal for users who wish to keep their computers
15 lean while still having a clean image viewer.16 lean while still having a clean image viewer.
1617
=== added file 'debian/menu'
--- debian/menu 1970-01-01 00:00:00 +0000
+++ debian/menu 2010-03-16 03:29:21 +0000
@@ -0,0 +1,6 @@
1?package(mirage):\
2 needs="X11"\
3 section="Applications/Viewers"\
4 title="Mirage"\
5 longtitle="Mirage image viewer"\
6 command="mirage"
07
=== added directory 'debian/patches'
=== added file 'debian/patches/.dpkg-source-applied'
--- debian/patches/.dpkg-source-applied 1970-01-01 00:00:00 +0000
+++ debian/patches/.dpkg-source-applied 2010-03-16 03:29:21 +0000
@@ -0,0 +1,3 @@
1xdg_specification.patch
2halfSelected.patch
3remove_gimp_remote.patch
04
=== added file 'debian/patches/halfSelected.patch'
--- debian/patches/halfSelected.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/halfSelected.patch 2010-03-16 03:29:21 +0000
@@ -0,0 +1,12 @@
1# mirage loads a cached image and does not update self.currimg_name.
2# Author: Evgeni Golov <evgeni@debian.org>
3--- a/mirage.py
4+++ b/mirage.py
5@@ -3892,6 +3892,7 @@
6 self.last_image_action_was_smart_fit = False
7 elif self.open_mode == self.open_mode_1to1 or (self.open_mode == self.open_mode_last and self.last_mode == self.open_mode_1to1):
8 self.last_image_action_was_fit = False
9+ self.currimg_name = str(self.image_list[self.curr_img_in_list])
10 else:
11 # Need to load the current image
12 self.currimg_pixbuf = None
013
=== added file 'debian/patches/remove_gimp_remote.patch'
--- debian/patches/remove_gimp_remote.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/remove_gimp_remote.patch 2010-03-16 03:29:21 +0000
@@ -0,0 +1,16 @@
1# By default, Ctrl+E is bound to the gimp-remote-2.4 command, which is no
2# longer available in sid.
3# Author: Jakub Wilk <ubanus@users.sf.net>.
4Index: mirage-0.9.3/mirage.py
5===================================================================
6--- mirage-0.9.3.orig/mirage.py 2010-02-09 23:20:50.000000000 +0100
7+++ mirage-0.9.3/mirage.py 2010-02-09 23:21:53.000000000 +0100
8@@ -150,7 +150,7 @@
9 self.preloading_images = True
10 self.action_names = ["Open in GIMP", "Create Thumbnail", "Create Thumbnails", "Move to Favorites"]
11 self.action_shortcuts = ["<Control>e", "<Alt>t", "<Control><Alt>t", "<Control><Alt>f"]
12- self.action_commands = ["gimp-remote-2.4 %F", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "mkdir -p ~/mirage-favs; mv %F ~/mirage-favs; [NEXT]"]
13+ self.action_commands = ["gimp %F &", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "mkdir -p ~/mirage-favs; mv %F ~/mirage-favs; [NEXT]"]
14 self.action_batch = [False, False, True, False]
15 self.onload_cmd = None
16 self.searching_for_images = False
017
=== added file 'debian/patches/series'
--- debian/patches/series 1970-01-01 00:00:00 +0000
+++ debian/patches/series 2010-03-16 03:29:21 +0000
@@ -0,0 +1,3 @@
1xdg_specification.patch
2halfSelected.patch
3remove_gimp_remote.patch
04
=== added file 'debian/patches/xdg_specification.patch'
--- debian/patches/xdg_specification.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/xdg_specification.patch 2010-03-16 03:29:21 +0000
@@ -0,0 +1,60 @@
1# Mirage is currently using ~/.config/mirage/ directory to store its
2# configuration files, which is in the spirit of XDG Base Directory
3# Specification. The attached patches makes mirage to actually follow
4# the specification, i.e. to respect the $XDG_CONFIG_HOME variable.
5# Author Jakub Wilk <ubanus@users.sf.net>
6Index: mirage-0.9.3/mirage.py
7===================================================================
8--- mirage-0.9.3.orig/mirage.py 2010-02-09 23:25:29.000000000 +0100
9+++ mirage-0.9.3/mirage.py 2010-02-09 23:28:47.000000000 +0100
10@@ -53,6 +53,8 @@
11 if gtk.pygtk_version < (2, 6, 0):
12 sys.stderr.write("Mirage requires PyGTK 2.6.0 or newer.\n")
13 sys.exit(1)
14+
15+config_dir = (os.getenv('XDG_CONFIG_HOME') or os.path.expanduser('~/.config')) + '/mirage'
16
17 def valid_int(inputstring):
18 try:
19@@ -204,8 +206,8 @@
20
21 # Load config from disk:
22 conf = ConfigParser.ConfigParser()
23- if os.path.isfile(os.path.expanduser('~/.config/mirage/miragerc')):
24- conf.read(os.path.expanduser('~/.config/mirage/miragerc'))
25+ if os.path.isfile(config_dir + '/miragerc'):
26+ conf.read(config_dir + '/miragerc')
27 elif os.path.isfile(os.path.expanduser('~/.miragerc')):
28 conf.read(os.path.expanduser('~/.miragerc'))
29 os.remove(os.path.expanduser('~/.miragerc'))
30@@ -297,8 +299,8 @@
31 self.curr_slideshow_random = self.slideshow_random
32
33 # Read accel_map file, if it exists
34- if os.path.isfile(os.path.expanduser('~/.config/mirage/accel_map')):
35- gtk.accel_map_load(os.path.expanduser('~/.config/mirage/accel_map'))
36+ if os.path.isfile(config_dir + '/accel_map'):
37+ gtk.accel_map_load(config_dir + '/accel_map')
38
39 self.blank_image = gtk.gdk.pixbuf_new_from_file(self.find_path("mirage_blank.png"))
40
41@@ -1465,15 +1467,12 @@
42 for i in range(len(self.recentfiles)):
43 conf.set('recent', 'num[' + str(i) + ']', len(self.recentfiles[i]))
44 conf.set('recent', 'urls[' + str(i) + ',0]', self.recentfiles[i])
45- if not os.path.exists(os.path.expanduser('~/.config/')):
46- os.mkdir(os.path.expanduser('~/.config/'))
47- if not os.path.exists(os.path.expanduser('~/.config/mirage/')):
48- os.mkdir(os.path.expanduser('~/.config/mirage/'))
49- conf.write(file(os.path.expanduser('~/.config/mirage/miragerc'), 'w'))
50+ if not os.path.exists(config_dir):
51+ os.makedirs(config_dir)
52+ conf.write(file(config_dir + '/miragerc', 'w'))
53
54 # Also, save accel_map:
55- gtk.accel_map_save(os.path.expanduser('~/.config/mirage/accel_map'))
56-
57+ gtk.accel_map_save(config_dir + '/accel_map')
58 return
59
60 def delete_event(self, widget, event, data=None):
061
=== modified file 'debian/rules'
--- debian/rules 2009-06-12 14:30:25 +0000
+++ debian/rules 2010-03-16 03:29:21 +0000
@@ -5,13 +5,14 @@
55
6include /usr/share/cdbs/1/rules/debhelper.mk6include /usr/share/cdbs/1/rules/debhelper.mk
7include /usr/share/cdbs/1/class/python-distutils.mk7include /usr/share/cdbs/1/class/python-distutils.mk
8include /usr/share/cdbs/1/rules/patchsys-quilt.mk
89
9PYTHONVER = 2.510PYTHONVER = 2.6
10DEB_CONFIGURE_EXTRA_FLAGS := --no-compile --prefix $(DEB_DESTDIR)/usr --install-layout=deb11DEB_CONFIGURE_EXTRA_FLAGS := --no-compile --prefix $(DEB_DESTDIR)/usr --install-layout=deb
1112
12binary-install/mirage::13binary-install/mirage::
14 /usr/bin/python setup.py install $(DEB_CONFIGURE_EXTRA_FLAGS)
13 dh_pysupport -pmirage15 dh_pysupport -pmirage
14 /usr/bin/python setup.py install $(DEB_CONFIGURE_EXTRA_FLAGS)
15 dh_installman debian/mirage.116 dh_installman debian/mirage.1
16 rm -f $(DEB_DESTDIR)/usr/share/mirage/COPYING17 rm -f $(DEB_DESTDIR)/usr/share/mirage/COPYING
17 rm -f $(DEB_DESTDIR)/usr/share/mirage/README18 rm -f $(DEB_DESTDIR)/usr/share/mirage/README
1819
=== added directory 'debian/source'
=== added file 'debian/source/format'
--- debian/source/format 1970-01-01 00:00:00 +0000
+++ debian/source/format 2010-03-16 03:29:21 +0000
@@ -0,0 +1,1 @@
13.0 (quilt)
02
=== modified file 'mirage.py'
--- mirage.py 2008-06-05 12:48:37 +0000
+++ mirage.py 2010-03-16 03:29:21 +0000
@@ -53,6 +53,8 @@
53if gtk.pygtk_version < (2, 6, 0):53if gtk.pygtk_version < (2, 6, 0):
54 sys.stderr.write("Mirage requires PyGTK 2.6.0 or newer.\n")54 sys.stderr.write("Mirage requires PyGTK 2.6.0 or newer.\n")
55 sys.exit(1)55 sys.exit(1)
56
57config_dir = (os.getenv('XDG_CONFIG_HOME') or os.path.expanduser('~/.config')) + '/mirage'
56 58
57def valid_int(inputstring):59def valid_int(inputstring):
58 try:60 try:
@@ -150,7 +152,7 @@
150 self.preloading_images = True152 self.preloading_images = True
151 self.action_names = ["Open in GIMP", "Create Thumbnail", "Create Thumbnails", "Move to Favorites"]153 self.action_names = ["Open in GIMP", "Create Thumbnail", "Create Thumbnails", "Move to Favorites"]
152 self.action_shortcuts = ["<Control>e", "<Alt>t", "<Control><Alt>t", "<Control><Alt>f"]154 self.action_shortcuts = ["<Control>e", "<Alt>t", "<Control><Alt>t", "<Control><Alt>f"]
153 self.action_commands = ["gimp-remote-2.4 %F", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "mkdir -p ~/mirage-favs; mv %F ~/mirage-favs; [NEXT]"]155 self.action_commands = ["gimp %F &", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "mkdir -p ~/mirage-favs; mv %F ~/mirage-favs; [NEXT]"]
154 self.action_batch = [False, False, True, False]156 self.action_batch = [False, False, True, False]
155 self.onload_cmd = None157 self.onload_cmd = None
156 self.searching_for_images = False158 self.searching_for_images = False
@@ -204,8 +206,8 @@
204206
205 # Load config from disk:207 # Load config from disk:
206 conf = ConfigParser.ConfigParser()208 conf = ConfigParser.ConfigParser()
207 if os.path.isfile(os.path.expanduser('~/.config/mirage/miragerc')):209 if os.path.isfile(config_dir + '/miragerc'):
208 conf.read(os.path.expanduser('~/.config/mirage/miragerc'))210 conf.read(config_dir + '/miragerc')
209 elif os.path.isfile(os.path.expanduser('~/.miragerc')):211 elif os.path.isfile(os.path.expanduser('~/.miragerc')):
210 conf.read(os.path.expanduser('~/.miragerc'))212 conf.read(os.path.expanduser('~/.miragerc'))
211 os.remove(os.path.expanduser('~/.miragerc'))213 os.remove(os.path.expanduser('~/.miragerc'))
@@ -297,8 +299,8 @@
297 self.curr_slideshow_random = self.slideshow_random299 self.curr_slideshow_random = self.slideshow_random
298300
299 # Read accel_map file, if it exists301 # Read accel_map file, if it exists
300 if os.path.isfile(os.path.expanduser('~/.config/mirage/accel_map')):302 if os.path.isfile(config_dir + '/accel_map'):
301 gtk.accel_map_load(os.path.expanduser('~/.config/mirage/accel_map'))303 gtk.accel_map_load(config_dir + '/accel_map')
302 304
303 self.blank_image = gtk.gdk.pixbuf_new_from_file(self.find_path("mirage_blank.png"))305 self.blank_image = gtk.gdk.pixbuf_new_from_file(self.find_path("mirage_blank.png"))
304306
@@ -1465,15 +1467,12 @@
1465 for i in range(len(self.recentfiles)):1467 for i in range(len(self.recentfiles)):
1466 conf.set('recent', 'num[' + str(i) + ']', len(self.recentfiles[i]))1468 conf.set('recent', 'num[' + str(i) + ']', len(self.recentfiles[i]))
1467 conf.set('recent', 'urls[' + str(i) + ',0]', self.recentfiles[i])1469 conf.set('recent', 'urls[' + str(i) + ',0]', self.recentfiles[i])
1468 if not os.path.exists(os.path.expanduser('~/.config/')):1470 if not os.path.exists(config_dir):
1469 os.mkdir(os.path.expanduser('~/.config/'))1471 os.makedirs(config_dir)
1470 if not os.path.exists(os.path.expanduser('~/.config/mirage/')):1472 conf.write(file(config_dir + '/miragerc', 'w'))
1471 os.mkdir(os.path.expanduser('~/.config/mirage/'))
1472 conf.write(file(os.path.expanduser('~/.config/mirage/miragerc'), 'w'))
14731473
1474 # Also, save accel_map:1474 # Also, save accel_map:
1475 gtk.accel_map_save(os.path.expanduser('~/.config/mirage/accel_map'))1475 gtk.accel_map_save(config_dir + '/accel_map')
1476
1477 return1476 return
14781477
1479 def delete_event(self, widget, event, data=None):1478 def delete_event(self, widget, event, data=None):
@@ -3892,6 +3891,7 @@
3892 self.last_image_action_was_smart_fit = False3891 self.last_image_action_was_smart_fit = False
3893 elif self.open_mode == self.open_mode_1to1 or (self.open_mode == self.open_mode_last and self.last_mode == self.open_mode_1to1):3892 elif self.open_mode == self.open_mode_1to1 or (self.open_mode == self.open_mode_last and self.last_mode == self.open_mode_1to1):
3894 self.last_image_action_was_fit = False3893 self.last_image_action_was_fit = False
3894 self.currimg_name = str(self.image_list[self.curr_img_in_list])
3895 else:3895 else:
3896 # Need to load the current image3896 # Need to load the current image
3897 self.currimg_pixbuf = None3897 self.currimg_pixbuf = None

Subscribers

People subscribed via source and target branches

to all changes: