Revert "Don't remove /usr/share/doc/anaconda." (#1072033)
The help content path has been changed to /usr/share/anaconda/help, so this Lorax change is no longer needed. This reverts commit2bd4637336
and commit05ebf4ffcd
.
This commit is contained in:
parent
a05348ee9f
commit
75f419273f
@ -62,7 +62,7 @@ removepkg xorg-x11-server-common yum-utils firewalld
|
|||||||
## other removals
|
## other removals
|
||||||
remove /boot /home /media /opt /srv /tmp/*
|
remove /boot /home /media /opt /srv /tmp/*
|
||||||
remove /usr/etc /usr/games /usr/local /usr/tmp
|
remove /usr/etc /usr/games /usr/local /usr/tmp
|
||||||
remove /usr/share/info /usr/share/man /usr/share/gnome
|
remove /usr/share/doc /usr/share/info /usr/share/man /usr/share/gnome
|
||||||
remove /usr/share/mime/application /usr/share/mime/audio /usr/share/mime/image
|
remove /usr/share/mime/application /usr/share/mime/audio /usr/share/mime/image
|
||||||
remove /usr/share/mime/inode /usr/share/mime/message /usr/share/mime/model
|
remove /usr/share/mime/inode /usr/share/mime/message /usr/share/mime/model
|
||||||
remove /usr/share/mime/multipart /usr/share/mime/packages /usr/share/mime/text
|
remove /usr/share/mime/multipart /usr/share/mime/packages /usr/share/mime/text
|
||||||
@ -329,16 +329,6 @@ removefrom ${product.name}-logos /etc/*
|
|||||||
removefrom ${product.name}-logos /usr/share/icons/{Bluecurve,oxygen}/*
|
removefrom ${product.name}-logos /usr/share/icons/{Bluecurve,oxygen}/*
|
||||||
removefrom ${product.name}-logos /usr/share/{firstboot,gnome-screensaver,kde4,pixmaps}/*
|
removefrom ${product.name}-logos /usr/share/{firstboot,gnome-screensaver,kde4,pixmaps}/*
|
||||||
|
|
||||||
## Remove everything from /usr/share/doc except for anaconda's help files.
|
|
||||||
%if exists(root+"/usr/share/doc/anaconda"):
|
|
||||||
move ${root}/usr/share/doc/anaconda ${root}/usr/
|
|
||||||
remove ${root}/usr/share/doc
|
|
||||||
mkdir ${root}/usr/share/doc
|
|
||||||
move ${root}/usr/anaconda ${root}/usr/share/doc/
|
|
||||||
%else:
|
|
||||||
remove ${root}/usr/share/doc
|
|
||||||
%endif
|
|
||||||
|
|
||||||
## cleanup_python_files()
|
## cleanup_python_files()
|
||||||
runcmd find ${root} -name "*.pyo" -type f -delete
|
runcmd find ${root} -name "*.pyo" -type f -delete
|
||||||
runcmd find ${root} -name "*.pyc" -type f -exec ln -sf /dev/null {} \;
|
runcmd find ${root} -name "*.pyc" -type f -exec ln -sf /dev/null {} \;
|
||||||
|
Loading…
Reference in New Issue
Block a user