[packages/filesystem] - fix %pretrans - release 16

wiget wiget at pld-linux.org
Thu Oct 4 08:05:10 CEST 2012


commit 51effe9fd8cf75a8e03adfe2ff4866f4ecc0b86e
Author: Artur Frysiak <artur at frysiak.net>
Date:   Thu Oct 4 08:04:45 2012 +0200

    - fix %pretrans
    - release 16

 filesystem.spec | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/filesystem.spec b/filesystem.spec
index f8937ff..92e54f3 100644
--- a/filesystem.spec
+++ b/filesystem.spec
@@ -8,7 +8,7 @@ Summary:	Common directories
 Summary(pl.UTF-8):	Wspólne katalogi
 Name:		filesystem
 Version:	4.0
-Release:	15
+Release:	16
 License:	GPL
 Group:		Base
 BuildRequires:	automake
@@ -135,16 +135,16 @@ check_filesystem_dirs
 %if "%{pld_release}" != "ac"
 %pretrans -p <lua>
 -- this needs to be a dir
-if posix.stat("/tmp/include/X11", "type") == "link" then
+if posix.stat("/usr/include/X11", "type") == "link" then
         posix.umask("0755");
-        os.rename("/tmp/include/X11", "/tmp/include/X11.rpmsave")
-        posix.mkdir("/tmp")
-        posix.mkdir("/tmp/include")
-        posix.mkdir("/tmp/include/X11")
+        os.rename("/usr/include/X11", "/usr/include/X11.rpmsave")
+        posix.mkdir("/usr")
+        posix.mkdir("/usr/include")
+        posix.mkdir("/usr/include/X11")
         oldpwd = posix.getcwd()
-        posix.chdir("/tmp/include/X11.rpmsave")
+        posix.chdir("/usr/include/X11.rpmsave")
         for i,j in pairs(posix.glob("*")) do
-                os.rename(j, "/tmp/include/X11/" .. j)
+                os.rename(j, "/usr/include/X11/" .. j)
         end
         posix.chdir(oldpwd)
 end
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/filesystem.git/commitdiff/51effe9fd8cf75a8e03adfe2ff4866f4ecc0b86e



More information about the pld-cvs-commit mailing list