[iep] 01/01: d/p/001*.diff: prevent install of missing appdata xml
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Feb 18 22:58:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository iep.
commit 28635319c85efcd4308a1e4e4f265ea3afc146ce
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Wed Feb 18 22:50:16 2015 +0000
d/p/001*.diff: prevent install of missing appdata xml
---
.../001-no-install-missing-appdata-xml.diff | 36 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 37 insertions(+)
diff --git a/debian/patches/001-no-install-missing-appdata-xml.diff b/debian/patches/001-no-install-missing-appdata-xml.diff
new file mode 100644
index 0000000..d684088
--- /dev/null
+++ b/debian/patches/001-no-install-missing-appdata-xml.diff
@@ -0,0 +1,36 @@
+--- a/setup.py
++++ b/setup.py
+@@ -83,18 +83,18 @@
+ )
+
+
+-# Install appdata.xml on Linux if we are installing in the system Python
+-if sys.platform.startswith('linux') and sys.prefix.startswith('/usr'):
+- if len(sys.argv) >= 2 and sys.argv[1] == 'install':
+- fname = 'iep.appdata.xml'
+- filename1 = os.path.join(os.path.dirname(__file__), fname)
+- filename2 = os.path.join('/usr/share/appdata', fname)
+- try:
+- bb = open(filename1, 'rb').read()
+- open(filename2, 'wb').write(bb)
+- except PermissionError:
+- pass # No sudo, no need to warn
+- except Exception as err:
+- print('Could not install %s: %s' % (fname, str(err)))
+- else:
+- print('Installed %s' % fname)
++## Install appdata.xml on Linux if we are installing in the system Python
++#if sys.platform.startswith('linux') and sys.prefix.startswith('/usr'):
++# if len(sys.argv) >= 2 and sys.argv[1] == 'install':
++# fname = 'iep.appdata.xml'
++# filename1 = os.path.join(os.path.dirname(__file__), fname)
++# filename2 = os.path.join('/usr/share/appdata', fname)
++# try:
++# bb = open(filename1, 'rb').read()
++# open(filename2, 'wb').write(bb)
++# except PermissionError:
++# pass # No sudo, no need to warn
++# except Exception as err:
++# print('Could not install %s: %s' % (fname, str(err)))
++# else:
++# print('Installed %s' % fname)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2c4d646
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+001-no-install-missing-appdata-xml.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/iep.git
More information about the debian-science-commits
mailing list