]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
filesystem: Drop Python scriptlet
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 20 Dec 2022 16:57:52 +0000 (16:57 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 20 Dec 2022 16:57:52 +0000 (16:57 +0000)
This is now being handled in Pakfire.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
filesystem/filesystem.nm

index b7966a8c5ac8bc30609c1479b5b9aa4c01d6b94a..cb406610c7e7980b3f7db8713413d67a6885ec8f 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = filesystem
 version    = 002
-release    = 2
+release    = 3
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = Base Build System/Base
@@ -24,12 +24,6 @@ end
 sources   =
 
 build
-       # Pakfire supports python scriptlets since
-       # version 0.9.22.
-       requires
-               pakfire-builder >= 0.9.22
-       end
-
        DIR_APP = %{DIR_SRC}
 
        build
@@ -107,25 +101,6 @@ end
 packages
        package %{name}
                prerequires = setup
-
-               # We do not know, if the filesystem package is the first
-               # in the transaction, so we create the symlinks prior to running
-               # the transaction.
-               script pretransin python
-                       if not os.path.exists("/usr"):
-                               os.makedirs("/usr")
-
-                       for dir in ("/lib", "/%{lib}", "/sbin", "/bin"):
-                               usr_dir = "/usr%s" % dir
-
-                               if not os.path.exists(usr_dir):
-                                       os.makedirs(usr_dir)
-
-                               try:
-                                       os.lstat(dir)
-                               except OSError:
-                                       os.symlink(usr_dir[1:], dir)
-               end
        end
 
        # Although this package is not noarch, it does not