Drop old, no-longer-needed symlink scriptlet
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
parent
ac499c11f6
commit
34c48b632d
14
nodejs.spec
14
nodejs.spec
@ -524,20 +524,6 @@ NODE_PATH=%{buildroot}%{_prefix}/lib/node_modules:%{buildroot}%{_prefix}/lib/nod
|
|||||||
|
|
||||||
|
|
||||||
%pretrans -n npm -p <lua>
|
%pretrans -n npm -p <lua>
|
||||||
-- Remove all of the symlinks from the bundled npm node_modules directory
|
|
||||||
-- Drop this scriptlet when F29 is EOL
|
|
||||||
base_path = "%{_prefix}/lib/node_modules/npm/node_modules/"
|
|
||||||
d_st = posix.stat(base_path)
|
|
||||||
if d_st then
|
|
||||||
for f in posix.files(base_path) do
|
|
||||||
path = base_path..f
|
|
||||||
st = posix.stat(path)
|
|
||||||
if st and st.type == "link" then
|
|
||||||
os.remove(path)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Replace the npm docs directory with a symlink
|
-- Replace the npm docs directory with a symlink
|
||||||
-- Drop this scriptlet when F31 is EOL
|
-- Drop this scriptlet when F31 is EOL
|
||||||
path = "%{_prefix}/lib/node_modules/npm/doc"
|
path = "%{_prefix}/lib/node_modules/npm/doc"
|
||||||
|
Loading…
Reference in New Issue
Block a user