[cylc] 12/33: More fixes
Alastair McKinstry
mckinstry at moszumanska.debian.org
Sat Dec 12 14:24:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
mckinstry pushed a commit to branch debian/master
in repository cylc.
commit 43b297bf17d50a04b7b2ff2a936c82687aa0011f
Author: Alastair McKinstry <mckinstry at debian.org>
Date: Fri Nov 14 13:41:15 2014 +0000
More fixes
---
debian/control | 4 +-
debian/missing-sources/styleswitcher.js | 91 +++++++++++++++++++++++++++++++++
debian/rules | 1 +
debian/source/lintian-overrides | 2 +-
4 files changed, 95 insertions(+), 3 deletions(-)
diff --git a/debian/control b/debian/control
index 1219cd3..add82b7 100644
--- a/debian/control
+++ b/debian/control
@@ -22,8 +22,8 @@ Package: python-cylc
Section: python
Architecture: any
Depends: ${python:Depends}, ${misc:Depends}
-Description: python libraries for cylc workflow scheduler
- Cylc ("silk") is a suite engine and meta-scheduler that specializes
+Description: Python libraries for cylc workflow scheduler
+ Cylc ("silk") is a suite engine and meta-scheduler that specializes
in suites of cycling tasks for weather forecasting, climate modeling,
and related processing (it can also be used for one-off workflows
of non-cycling tasks, which is a simpler problem).
diff --git a/debian/missing-sources/styleswitcher.js b/debian/missing-sources/styleswitcher.js
new file mode 100644
index 0000000..832ed0a
--- /dev/null
+++ b/debian/missing-sources/styleswitcher.js
@@ -0,0 +1,91 @@
+/*!
+ * Ext JS Library 3.4.0
+ * Copyright(c) 2006-2011 Sencha Inc.
+ * licensing at sencha.com
+ * http://www.sencha.com/license
+ */
+function setActiveStyleSheet(title) {
+ var i,
+ a,
+ links = document.getElementsByTagName("link"),
+ len = links.length;
+ for (i = 0; i < len; i++) {
+ a = links[i];
+ if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
+ a.disabled = true;
+ if (a.getAttribute("title") == title) a.disabled = false;
+ }
+ }
+}
+
+function getActiveStyleSheet() {
+ var i,
+ a,
+ links = document.getElementsByTagName("link"),
+ len = links.length;
+ for (i = 0; i < len; i++) {
+ a = links[i];
+ if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) {
+ return a.getAttribute("title");
+ }
+ }
+ return null;
+}
+
+function getPreferredStyleSheet() {
+ var i,
+ a,
+ links = document.getElementsByTagName("link"),
+ len = links.length;
+ for (i = 0; i < len; i++) {
+ a = links[i];
+ if (a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("rel").indexOf("alt") == -1 && a.getAttribute("title")) {
+ return a.getAttribute("title");
+ }
+ }
+ return null;
+}
+
+function createCookie(name, value, days) {
+ if (days) {
+ var date = new Date();
+ date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
+ var expires = "; expires=" + date.toGMTString();
+ } else {
+ expires = "";
+ }
+ document.cookie = name + "=" + value + expires + "; path=/";
+}
+
+function readCookie(name) {
+ var nameEQ = name + "=",
+ ca = document.cookie.split(';'),
+ i,
+ c,
+ len = ca.length;
+ for ( i = 0; i < len; i++) {
+ c = ca[i];
+ while (c.charAt(0) == ' ') {
+ c = c.substring(1, c.length);
+ }
+ if (c.indexOf(nameEQ) == 0) {
+ return c.substring(nameEQ.length, c.length);
+ }
+ }
+ return null;
+}
+
+window.onload = function (e) {
+ var cookie = readCookie("style");
+ var title = cookie ? cookie : getPreferredStyleSheet();
+ setActiveStyleSheet(title);
+}
+
+window.onunload = function (e) {
+ var title = getActiveStyleSheet();
+ createCookie("style", title, 365);
+}
+
+var cookie = readCookie("style");
+var title = cookie ? cookie : getPreferredStyleSheet();
+setActiveStyleSheet(title);
diff --git a/debian/rules b/debian/rules
index 85f2191..b7acab7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,7 @@ override_dh_auto_install:
cp conf/gcylcrc/gcylc.rc.eg debian/tmp/etc/cylc/gcylcrc/gcylc.rc
cp conf/gcylcrc/themes.rc debian/tmp/etc/cylc/gcylcrc
find . -name '*.t' -exec chmod +x {} \;
+ find . -name test_header -exec chmod +x {} \;
override_dh_auto_clean:
$(MAKE) clean || echo "Clean already."
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
index 612abcd..0ed0f4a 100644
--- a/debian/source/lintian-overrides
+++ b/debian/source/lintian-overrides
@@ -1 +1 @@
-python-cylc: unusual-interpreter usr/lib/python2.7/cylc/port_scan.py #!/usr/bin/pyro
+cylc: unusual-interpreter usr/lib/python2.7/cylc/port_scan.py #!/usr/bin/pyro
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cylc.git
More information about the debian-science-commits
mailing list