pld-ftp-admin: bin/pfa-lintpkg - TZ=GMT for consistent env

glen glen at pld-linux.org
Tue Mar 22 06:48:43 CET 2011


Author: glen                         Date: Tue Mar 22 05:48:43 2011 GMT
Module: pld-ftp-admin                 Tag: HEAD
---- Log message:
- TZ=GMT for consistent env

---- Files affected:
pld-ftp-admin/bin:
   pfa-lintpkg (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: pld-ftp-admin/bin/pfa-lintpkg
diff -u pld-ftp-admin/bin/pfa-lintpkg:1.12 pld-ftp-admin/bin/pfa-lintpkg:1.13
--- pld-ftp-admin/bin/pfa-lintpkg:1.12	Thu Feb 17 09:31:42 2011
+++ pld-ftp-admin/bin/pfa-lintpkg	Tue Mar 22 06:48:38 2011
@@ -150,7 +150,8 @@
             cmd = [self._rpmlint, file]
             outfd = open(cachefile, 'w')
             try:
-                rc = subprocess.call(cmd, stdin = subprocess.PIPE, stdout = outfd, stderr = outfd, close_fds = True)
+                env = {'TZ': 'GMT'}
+                rc = subprocess.call(cmd, stdin = subprocess.PIPE, stdout = outfd, stderr = outfd, env = env, close_fds = True)
             except KeyboardInterrupt:
                 os.unlink(cachefile)
                 raise
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/bin/pfa-lintpkg?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list