c8dff946d0
OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive-filesystem?expand=0&rev=34
26 lines
772 B
Python
26 lines
772 B
Python
#!/usr/bin/python
|
|
#
|
|
# $TEXMFDIST/texconfig/zypper.py
|
|
#
|
|
# The substitute for the %posttrans scriptlets used by rpm.
|
|
# Make sure that the update script does its work only once after
|
|
# an installation/update transaction as zypper executes rpm for
|
|
# each single texlive package.
|
|
#
|
|
# Copyright (c) 2012 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 subprocess import call
|
|
|
|
global update, tagdir
|
|
update = "%{_texmfdistdir}/texconfig/update"
|
|
tagdir = "/var/run/texlive"
|
|
|
|
if access(update, F_OK|X_OK):
|
|
if path.isdir(tagdir) and listdir(tagdir):
|
|
call("VERBOSE=false " + update + " 2>&1 || :", shell=True)
|