[Python-apps-commits] r10361 - in packages/pdfshuffler/trunk/debian (6 files)
vcheng at users.alioth.debian.org
vcheng at users.alioth.debian.org
Fri Jan 17 07:03:14 UTC 2014
Date: Friday, January 17, 2014 @ 07:03:13
Author: vcheng
Revision: 10361
pdfshuffler: Merge in changes from QA upload; adopt package
Added:
packages/pdfshuffler/trunk/debian/patches/fix-manpage-typo
Modified:
packages/pdfshuffler/trunk/debian/changelog
packages/pdfshuffler/trunk/debian/control
packages/pdfshuffler/trunk/debian/patches/series
Deleted:
packages/pdfshuffler/trunk/debian/patches/add-save-button
packages/pdfshuffler/trunk/debian/patches/fix-shebang
Modified: packages/pdfshuffler/trunk/debian/changelog
===================================================================
--- packages/pdfshuffler/trunk/debian/changelog 2014-01-17 06:20:08 UTC (rev 10360)
+++ packages/pdfshuffler/trunk/debian/changelog 2014-01-17 07:03:13 UTC (rev 10361)
@@ -1,3 +1,18 @@
+pdfshuffler (0.6.0-5) unstable; urgency=medium
+
+ * Adopt package. (Closes: #728579)
+ *
+
+ -- Vincent Cheng <vcheng at debian.org> Thu, 16 Jan 2014 21:31:13 -0800
+
+pdfshuffler (0.6.0-4) unstable; urgency=low
+
+ * Set Maintainer to Debian QA Group <packages at qa.debian.org> and drop
+ Uploaders field.
+ * Drop debian/patches/add-save-button, as upstream doesn't approve it.
+
+ -- Serafeim Zanikolas <sez at debian.org> Tue, 29 Oct 2013 20:12:47 +0000
+
pdfshuffler (0.6.0-3) unstable; urgency=low
* Add copyright to debian/patches/add-save-button
Modified: packages/pdfshuffler/trunk/debian/control
===================================================================
--- packages/pdfshuffler/trunk/debian/control 2014-01-17 06:20:08 UTC (rev 10360)
+++ packages/pdfshuffler/trunk/debian/control 2014-01-17 07:03:13 UTC (rev 10361)
@@ -1,10 +1,9 @@
Source: pdfshuffler
Section: x11
Priority: optional
-Maintainer: Serafeim Zanikolas <sez at debian.org>
+Maintainer: Debian QA Group <packages at qa.debian.org>
Build-Depends: debhelper (>= 7), gettext, python (>= 2.6.6-3~)
Standards-Version: 3.9.4
-Uploaders: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
Vcs-Svn: svn://svn.debian.org/python-apps/packages/pdfshuffler/trunk
Vcs-Browser: http://svn.debian.org/viewsvn/python-apps/packages/pdfshuffler
Homepage: http://pdfshuffler.sf.net
Deleted: packages/pdfshuffler/trunk/debian/patches/add-save-button
===================================================================
--- packages/pdfshuffler/trunk/debian/patches/add-save-button 2014-01-17 06:20:08 UTC (rev 10360)
+++ packages/pdfshuffler/trunk/debian/patches/add-save-button 2014-01-17 07:03:13 UTC (rev 10361)
@@ -1,100 +0,0 @@
-# Description: add "Save" button for single-document manipulation
-# Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=722995
-# Forwarded: no
-# Author: Serafeim Zanikolas <sez at debian.org>
-# Last-Update: 2013-10-06
---- a/data/pdfshuffler.ui
-+++ b/data/pdfshuffler.ui
-@@ -264,13 +264,13 @@
- </child>
- <child>
- <object class="GtkToolButton" id="toolbutton_save">
-- <property name="sensitive">False</property>
-+ <property name="visible">True</property>
- <property name="can_focus">False</property>
-- <property name="no_show_all">True</property>
- <property name="use_action_appearance">False</property>
- <property name="label" translatable="yes">Save</property>
- <property name="use_underline">True</property>
- <property name="stock_id">gtk-save</property>
-+ <signal name="clicked" handler="save_pdf" swapped="no"/>
- </object>
- <packing>
- <property name="expand">False</property>
---- a/pdfshuffler/pdfshuffler.py
-+++ b/pdfshuffler/pdfshuffler.py
-@@ -6,6 +6,7 @@
- PdfShuffler 0.6.0 - GTK+ based utility for splitting, rearrangement and
- modification of PDF documents.
- Copyright (C) 2008-2012 Konstantinos Poulios
-+ Copyright (C) 2013 Google Inc
- <https://sourceforge.net/projects/pdfshuffler>
-
- This file is part of PdfShuffler.
-@@ -268,9 +269,15 @@
-
- self.set_unsaved(False)
-
-+ # Clicking on "Save" will store to this filename if only one document
-+ # has been imported.
-+ self.default_save_filename = None
-+
- # Importing documents passed as command line arguments
- for filename in sys.argv[1:]:
-- self.add_pdf_pages(filename)
-+ successful = self.add_pdf_pages(filename)
-+ if successful and self.default_save_filename is None:
-+ self.default_save_filename = filename
-
- def render(self):
- if self.rendering_thread:
-@@ -455,6 +462,38 @@
- gobject.idle_add(self.render)
- return res
-
-+ def save_pdf(self, widget=None, only_selected=False):
-+ """Stores contents under the filename of the first-ever imported pdf"""
-+
-+ file_out = self.default_save_filename
-+
-+ # Do nothing if there's nothing to save.
-+ if file_out is None:
-+ return
-+
-+ # Prompt for a filename if multiple documents were imported.
-+ if len(self.pdfqueue) > 1:
-+ self.choose_export_pdf_name()
-+ return
-+
-+ # TODO extract method (and re-use here and at choose_export_pdf_name())
-+ (path, shortname) = os.path.split(file_out)
-+ (shortname, ext) = os.path.splitext(shortname)
-+ if ext.lower() != '.pdf':
-+ file_out = file_out + '.pdf'
-+ try:
-+ self.export_to_file(file_out, only_selected)
-+ self.export_directory = path
-+ self.set_unsaved(False)
-+ except Exception, e:
-+ error_msg_dlg = gtk.MessageDialog(flags=gtk.DIALOG_MODAL,
-+ type=gtk.MESSAGE_ERROR,
-+ message_format=str(e),
-+ buttons=gtk.BUTTONS_OK)
-+ response = error_msg_dlg.run()
-+ if response == gtk.RESPONSE_OK:
-+ error_msg_dlg.destroy()
-+
- def choose_export_pdf_name(self, widget=None, only_selected=False):
- """Handles choosing a name for exporting """
-
-@@ -599,7 +638,9 @@
- expected_mime_type = 'application/pdf'
-
- if mime_type == expected_mime_type:
-- self.add_pdf_pages(filename)
-+ successful = self.add_pdf_pages(filename)
-+ if successful and self.default_save_filename is None:
-+ self.default_save_filename = filename
- elif mime_type[:34] == 'application/vnd.oasis.opendocument':
- print(_('OpenDocument not supported yet!'))
- elif mime_type[:5] == 'image':
Added: packages/pdfshuffler/trunk/debian/patches/fix-manpage-typo
===================================================================
--- packages/pdfshuffler/trunk/debian/patches/fix-manpage-typo (rev 0)
+++ packages/pdfshuffler/trunk/debian/patches/fix-manpage-typo 2014-01-17 07:03:13 UTC (rev 10361)
@@ -0,0 +1,15 @@
+Description: Fix typo in manpage
+Forwarded: https://sourceforge.net/p/pdfshuffler/patches/16/
+
+
+--- a/doc/pdfshuffler.1
++++ b/doc/pdfshuffler.1
+@@ -15,7 +15,7 @@
+ .SH "FILES"
+ Currently PDF-Shuffler has no configuration file.
+ .SH "ENVIRONMENT"
+-All gtk related enviroment variables.
++All gtk related environment variables.
+ .SH "DIAGNOSTICS"
+ Common python and gtk diagnostics.
+ .SH "AUTHOR"
Deleted: packages/pdfshuffler/trunk/debian/patches/fix-shebang
===================================================================
--- packages/pdfshuffler/trunk/debian/patches/fix-shebang 2014-01-17 06:20:08 UTC (rev 10360)
+++ packages/pdfshuffler/trunk/debian/patches/fix-shebang 2014-01-17 07:03:13 UTC (rev 10361)
@@ -1,12 +0,0 @@
-# Description: fix shebang
-# Forward: not applicable
-# Author: Serafeim Zanikolas <serzan at hellug.gr>
-# Last-Update: 2010-01-24
---- pdfshuffler-0.3.1.orig/pdfshuffler 2009-02-08 20:59:26.000000000 +0000
-+++ pdfshuffler-0.3.1/pdfshuffler 2009-02-08 20:59:27.000000000 +0000
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/bin/python
- # -*- coding: utf-8 -*-
-
- """
Modified: packages/pdfshuffler/trunk/debian/patches/series
===================================================================
--- packages/pdfshuffler/trunk/debian/patches/series 2014-01-17 06:20:08 UTC (rev 10360)
+++ packages/pdfshuffler/trunk/debian/patches/series 2014-01-17 07:03:13 UTC (rev 10361)
@@ -1,2 +1 @@
-add-save-button
fix-manpage-typo
More information about the Python-apps-commits
mailing list