summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/0001-intltool_utf8.patch9
-rw-r--r--debian/patches/05_removed-empty-directory.diff15
-rw-r--r--debian/patches/0700-appstream-metadata.patch23
-rw-r--r--debian/patches/10-keywords_desktop.patch15
-rw-r--r--debian/patches/11-no-version-check.patch26
-rw-r--r--debian/patches/series5
6 files changed, 93 insertions, 0 deletions
diff --git a/debian/patches/0001-intltool_utf8.patch b/debian/patches/0001-intltool_utf8.patch
new file mode 100644
index 0000000..58f2671
--- /dev/null
+++ b/debian/patches/0001-intltool_utf8.patch
@@ -0,0 +1,9 @@
+Index: trunk/po/POTFILES.in
+===================================================================
+--- trunk.orig/po/POTFILES.in
++++ trunk/po/POTFILES.in
+@@ -1,3 +1,4 @@
++[encoding: UTF-8]
+ raphodo/aboutdialog.py
+ raphodo/backupfile.py
+ raphodo/backuppanel.py
diff --git a/debian/patches/05_removed-empty-directory.diff b/debian/patches/05_removed-empty-directory.diff
new file mode 100644
index 0000000..0c5ecd6
--- /dev/null
+++ b/debian/patches/05_removed-empty-directory.diff
@@ -0,0 +1,15 @@
+Description: Remove empty directory from installation
+Author: Julien Valroff <julien@debian.org>
+
+Index: trunk/setup.py
+===================================================================
+--- trunk.orig/setup.py
++++ trunk/setup.py
+@@ -86,7 +86,6 @@ photo and video renaming, and backup.
+ data_files=[
+ ('share/applications', ['data/rapid-photo-downloader.desktop']),
+ ('share/pixmaps', ['data/icons/48x48/apps/rapid-photo-downloader.png', 'data/icons/rapid-photo-downloader.xpm']),
+- ('share/icons/hicolor/scalable/apps', glob.glob('data/icons/scalable/apps/*.svg')),
+ ('share/icons/hicolor/16x16/apps', glob.glob('data/icons/16x16/apps/*.png')),
+ ('share/icons/hicolor/22x22/apps', glob.glob('data/icons/22x22/apps/*.png')),
+ ('share/icons/hicolor/24x24/apps', glob.glob('data/icons/24x24/apps/*.png')),
diff --git a/debian/patches/0700-appstream-metadata.patch b/debian/patches/0700-appstream-metadata.patch
new file mode 100644
index 0000000..dcd9156
--- /dev/null
+++ b/debian/patches/0700-appstream-metadata.patch
@@ -0,0 +1,23 @@
+Description: Rewrite package metadata latest version
+Author: Jölrg Frings-Fürst <debian@jff.email>
+Last-Update: 2018-01-03
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/data/net.damonlynch.rapid-photo-downloader.appdata.xml.in
+===================================================================
+--- trunk.orig/data/net.damonlynch.rapid-photo-downloader.appdata.xml.in
++++ trunk/data/net.damonlynch.rapid-photo-downloader.appdata.xml.in
+@@ -1,6 +1,6 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!-- Copyright 2014-2017 Damon Lynch <damonlynch@gmail.com> -->
+-<application>
++<component>
+ <id type="desktop">net.damonlynch.rapid-photo-downloader</id>
+ <provides>
+ <id>rapid-photo-downloader.desktop</id>
+@@ -67,4 +67,4 @@
+ </screenshot>
+ </screenshots>
+ <updatecontact>damonlynch@gmail.com</updatecontact>
+-</application>
++</component>
diff --git a/debian/patches/10-keywords_desktop.patch b/debian/patches/10-keywords_desktop.patch
new file mode 100644
index 0000000..85014c2
--- /dev/null
+++ b/debian/patches/10-keywords_desktop.patch
@@ -0,0 +1,15 @@
+Description: Add _Keywords to .desktop file
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Forwarded: not-needed
+Last-Update: 2014-08-18
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/data/rapid-photo-downloader.desktop
+===================================================================
+--- trunk.orig/data/rapid-photo-downloader.desktop
++++ trunk/data/rapid-photo-downloader.desktop
+@@ -9,3 +9,4 @@ MimeType=x-content/image-dcf;
+ Terminal=false
+ Type=Application
+ Categories=Graphics;Photography;
++Keywords=photo;download;graphics;photography;
diff --git a/debian/patches/11-no-version-check.patch b/debian/patches/11-no-version-check.patch
new file mode 100644
index 0000000..095a026
--- /dev/null
+++ b/debian/patches/11-no-version-check.patch
@@ -0,0 +1,26 @@
+Description: disable version checks on startup
+ Rapid-photo-downloader performs a check for new versions on startup
+ upstream. In Debian, users cannot perform this update themselves
+ through the mechanisms offered upstream: they must perform updates
+ through the Debian packaging system. This check will, when the
+ package trickle down in Debian, trigger needless warnings when
+ upstream performs new releases that are not backported to stable or
+ LTS releases.
+Origin: upstream, https://discuss.pixls.us/t/rapid-photo-downloader-0-9-9-is-released/6912
+Forwarded: not-needed
+Last-update: 2018-03-14
+Author: Antoine Beaupre <anarcat@debian.org>
+
+diff --git a/raphodo/constants.py b/raphodo/constants.py
+index 8406456..21701cc 100644
+--- a/raphodo/constants.py
++++ b/raphodo/constants.py
+@@ -31,7 +31,7 @@
+
+ # If set to True, the ability to check for a new version will be removed
+ # from the user interface and disabled in program logic.
+-disable_version_check = False
++disable_version_check = True
+
+
+ class CheckNewVersionDialogResult(IntEnum):
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..28606f7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,5 @@
+#05_removed-empty-directory.diff
+#10-keywords_desktop.patch
+#0001-intltool_utf8.patch
+11-no-version-check.patch
+0700-appstream-metadata.patch