mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
yum: Use volatiles for the yum cache directory
This commit is contained in:
committed by
Rob Bradford
parent
db5f7b918b
commit
d02483f74f
@@ -0,0 +1 @@
|
|||||||
|
d root root 0755 /var/cache/yum none
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
HOMEPAGE = "http://linux.duke.edu/projects/yum/"
|
HOMEPAGE = "http://linux.duke.edu/projects/yum/"
|
||||||
PR = "r5"
|
PR = "r6"
|
||||||
|
|
||||||
SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \
|
SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \
|
||||||
file://paths.patch;patch=1 \
|
file://paths.patch;patch=1 \
|
||||||
@@ -27,6 +27,14 @@ do_install_append () {
|
|||||||
install -d ${D}${bindir}/
|
install -d ${D}${bindir}/
|
||||||
install ${WORKDIR}/extract-postinst.awk ${D}${bindir}/
|
install ${WORKDIR}/extract-postinst.awk ${D}${bindir}/
|
||||||
install ${WORKDIR}/yum-install-recommends.py ${D}${bindir}/
|
install ${WORKDIR}/yum-install-recommends.py ${D}${bindir}/
|
||||||
|
rmdir ${D}${localstatedir}/cache/yum
|
||||||
|
rmdir ${D}${localstatedir}/cache
|
||||||
|
install -d ${D}/etc/default/volatiles
|
||||||
|
install -m 0644 ${WORKDIR}/98_yum ${D}/etc/default/volatiles
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst_yum () {
|
||||||
|
/etc/init.d/populate-volatile.sh update
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} += "${libdir}/python* ${datadir}/yum-cli"
|
FILES_${PN} += "${libdir}/python* ${datadir}/yum-cli"
|
||||||
|
|||||||
Reference in New Issue
Block a user