3
0
forked from pool/filesystem

Accepting request 224408 from home:oertel:branches:Base:System

- change pre to pretrans for directory/symlink conversion

OBS-URL: https://build.opensuse.org/request/show/224408
OBS-URL: https://build.opensuse.org/package/show/Base:System/filesystem?expand=0&rev=121
This commit is contained in:
Marcus Meissner 2014-03-03 12:30:22 +00:00 committed by Git OBS Bridge
parent 889539e943
commit 2ca7667fab
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Mar 3 11:48:31 CET 2014 - ro@suse.de
- change pre to pretrans for directory/symlink conversion
-------------------------------------------------------------------
Fri Feb 28 13:56:47 CET 2014 - ro@suse.de

View File

@ -189,7 +189,7 @@ test -n "$NON_EXISTING_DIR" && {
exit 1
}
%pre -p <lua>
%pretrans -p <lua>
os.remove ("/usr/include/X11")
os.remove ("/usr/lib/X11")
st = posix.stat("/var/run")
@ -197,13 +197,10 @@ if st and st.type == "directory" then
sta = posix.stat("/var/run/systemd")
if sta and sta.type == "directory" then
posix.umount("/var/run")
os.execute("rm -rf /var/run")
posix.symlink("/run","/var/run")
else
os.rename("/var/run","/var/run.old")
posix.symlink("/run","/var/run")
os.execute("cp -a /var/run.old/* /run")
end
os.rename("/var/run","/var/run.old")
posix.symlink("/run","/var/run")
os.execute("rm -rf /var/run.old")
end
%files -f filesystem.list