Accepting request 236663 from Publishing:TeXLive

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/236663
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/texlive-filesystem?expand=0&rev=12
This commit is contained in:
Stephan Kulow 2014-06-18 05:49:17 +00:00 committed by Git OBS Bridge
commit b9c81a0e50
2 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 20 09:23:47 UTC 2014 - schwab@suse.de
- Make sure that texconfig/update is run only once per transaction
-------------------------------------------------------------------
Mon Feb 10 10:03:46 UTC 2014 - werner@suse.de

View File

@ -7,19 +7,19 @@
# an installation/update transaction as zypper executes rpm for
# each single texlive package.
#
# Copyright (c) 2012 SuSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# Author: Werner Fink, 2012
#
from os import listdir, path, access, F_OK,R_OK,X_OK
from os import path, remove, access, F_OK,R_OK,X_OK
from subprocess import call
global update, tagdir
global update, tagfile
update = "%{_texmfdistdir}/texconfig/update"
tagdir = "/var/run/texlive"
tagfile = "/var/run/texlive/run-update"
if access(update, F_OK|X_OK):
if path.isdir(tagdir) and listdir(tagdir):
call("VERBOSE=false " + update + " 2>&1 || :", shell=True)
if access(update, F_OK|X_OK) and path.exists(tagfile):
call("VERBOSE=false " + update + " 2>&1 || :", shell=True)
remove(tagfile)