From 1d3b0a8708c720cf9dd04f2bf0a3c1727eb8ddc73d494eb183e3a6079f6d1faa Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Mon, 24 Jul 2017 07:59:22 +0000 Subject: [PATCH] Avoid erro in zypper pythin script OBS-URL: https://build.opensuse.org/package/show/Publishing:TeXLive/texlive-filesystem?expand=0&rev=73 --- texlive-filesystem.changes | 5 +++++ zypplugin.in | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/texlive-filesystem.changes b/texlive-filesystem.changes index fc34d63..c49879d 100644 --- a/texlive-filesystem.changes +++ b/texlive-filesystem.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 24 07:56:46 UTC 2017 - werner@suse.de + +- Avoid error in zypper pythin script + ------------------------------------------------------------------- Tue Jul 18 13:50:34 UTC 2017 - werner@suse.de diff --git a/zypplugin.in b/zypplugin.in index 886bb42..fa6914d 100644 --- a/zypplugin.in +++ b/zypplugin.in @@ -22,4 +22,7 @@ tagfile = "/var/run/texlive/run-update" if access(update, F_OK|X_OK) and path.exists(tagfile): call("VERBOSE=false " + update + " 2>&1 || :", shell=True) - remove(tagfile) + try: + remove(tagfile) + except OSError: + pass