From: Stefan Rubner Date: Sat, 16 May 2015 10:58:16 +0000 (+0200) Subject: Fix build in symlinked/mounted dirs X-Git-Tag: v4.2.1~2528 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61309d2e4d93f8c14e879331af235a8dc7696150;p=thirdparty%2Ftvheadend.git Fix build in symlinked/mounted dirs --- diff --git a/support/css.py b/support/css.py index 7a271066c..3d0558f56 100755 --- a/support/css.py +++ b/support/css.py @@ -41,7 +41,7 @@ def url(fn): fn = os.path.normpath(fn) if VERBOSE: info('css: %s', fn) - if not fn.startswith(TVHDIR): + if not os.path.realpath(fn).startswith(TVHDIR): error('Wrong filename "%s"', fn) bd = os.path.dirname(fn) while 1: @@ -81,7 +81,7 @@ def utf_check(fn): fn = os.path.normpath(fn) if VERBOSE: info('utf-check: %s', fn) - if not fn.startswith(TVHDIR): + if not os.path.realpath(fn).startswith(TVHDIR): error('Wrong filename "%s"', fn) while 1: l = f.readline()