[library-web/oscp] Move extra_tarballs at the end of the conf file
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web/oscp] Move extra_tarballs at the end of the conf file
- Date: Tue, 25 Feb 2020 11:36:58 +0000 (UTC)
commit 3388d195c966a10451c947eab6743d6ca066313b
Author: Andrea Veri <av gnome org>
Date: Tue Feb 25 11:36:54 2020 +0000
Move extra_tarballs at the end of the conf file
lgo/library-web.lgorc | 53 +++++++++++++++++++++++++--------------------------
1 file changed, 26 insertions(+), 27 deletions(-)
---
diff --git a/lgo/library-web.lgorc b/lgo/library-web.lgorc
index 72b2b11..1d0f2fd 100644
--- a/lgo/library-web.lgorc
+++ b/lgo/library-web.lgorc
@@ -52,6 +52,31 @@ blacklist = ['user-guide', 'gnome-access-guide', 'sabayon', 'gnome-lirc-properti
#nightly_tarballs_location = '/usr/local/www/gnomeweb/nightly-tarballs/'
+if False:
+ version_min = '3.8'
+ modules = ['gnome-user-docs', 'gnome-getting-started-docs']
+ blacklist = ['sysadmin-guide']
+ extra_tarballs = []
+ languages = ['en']
+
+mal2html_xsl_filename = '/opt/lgo/data/xslt/mal2html.xsl'
+mal2html_xsl = file(mal2html_xsl_filename).read()
+if '/usr/share/yelp-xsl/xslt/mallard' in mal2html_xsl:
+ atime, mtime = os.stat(mal2html_xsl_filename)[-3:-1]
+ mal2html_xsl = mal2html_xsl.replace('/usr/share/yelp-xsl/xslt/mallard',
+ '/opt/yelp-xsl/xslt/mallard')
+ file(mal2html_xsl_filename, 'w').write(mal2html_xsl)
+ # keeping the file at the old date is not enough to avoid rebuilds, as
+ # the change gets reverted by git and a later pull gets it in the future
+ # again.
+ import subprocess
+ sp = subprocess.Popen(['git', 'log', '-n1', '--format=format:%ct', 'mal2html.xsl'],
+ cwd='/opt/lgo/data/xslt/',
+ stdout=subprocess.PIPE)
+ stdout, stderr = sp.communicate()
+ new_mtime = int(stdout.strip())
+ os.utime(mal2html_xsl_filename, (new_mtime, new_mtime))
+
extra_tarballs.extend([
# locally generated release notes
"file:///data/extra-tarballs/release-notes-2.0.tar.gz",
@@ -91,30 +116,4 @@ extra_tarballs.extend([
"file:///data/extra-tarballs/release-notes-3.32.tar.gz",
"file:///data/extra-tarballs/release-notes-3.34.tar.gz",
"file:///data/extra-tarballs/release-notes-3.36.tar.gz",
-])
-
-
-if False:
- version_min = '3.8'
- modules = ['gnome-user-docs', 'gnome-getting-started-docs']
- blacklist = ['sysadmin-guide']
- extra_tarballs = []
- languages = ['en']
-
-mal2html_xsl_filename = '/opt/lgo/data/xslt/mal2html.xsl'
-mal2html_xsl = file(mal2html_xsl_filename).read()
-if '/usr/share/yelp-xsl/xslt/mallard' in mal2html_xsl:
- atime, mtime = os.stat(mal2html_xsl_filename)[-3:-1]
- mal2html_xsl = mal2html_xsl.replace('/usr/share/yelp-xsl/xslt/mallard',
- '/opt/yelp-xsl/xslt/mallard')
- file(mal2html_xsl_filename, 'w').write(mal2html_xsl)
- # keeping the file at the old date is not enough to avoid rebuilds, as
- # the change gets reverted by git and a later pull gets it in the future
- # again.
- import subprocess
- sp = subprocess.Popen(['git', 'log', '-n1', '--format=format:%ct', 'mal2html.xsl'],
- cwd='/opt/lgo/data/xslt/',
- stdout=subprocess.PIPE)
- stdout, stderr = sp.communicate()
- new_mtime = int(stdout.strip())
- os.utime(mal2html_xsl_filename, (new_mtime, new_mtime))
+])
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]