diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-01 23:00:52 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-01 23:02:12 +0000 |
| commit | b187b2775c854f6cf96e7eb4d20371340f5b152c (patch) | |
| tree | 0fb1e3d89fcbfb1f08c5d3c4a3d1488ed854bb44 /meta/classes/rootfs_rpm.bbclass | |
| parent | d8bee043cbd5c88a0ddca58868f8e4556ef8531c (diff) | |
| download | poky-b187b2775c854f6cf96e7eb4d20371340f5b152c.tar.gz | |
Revert "classes/buildhistory: add new output history collection class"
This reverts commit 508ff624fea705eb93cf2cc1e0c9c42cb817acf8. RP
accidentally pulled the wrong commit in, it was supposed to be a
*package*history bbclass change.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
| -rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 41 |
1 files changed, 5 insertions, 36 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index 5fd45d758c..6973008c59 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
| @@ -160,47 +160,16 @@ remove_packaging_data_files() { | |||
| 160 | rm -rf ${IMAGE_ROOTFS}${opkglibdir} | 160 | rm -rf ${IMAGE_ROOTFS}${opkglibdir} |
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | RPM_QUERY_CMD = '${RPM} --root ${IMAGE_ROOTFS} -D "_dbpath ${rpmlibdir}" \ | ||
| 164 | -D "__dbi_txn create nofsync private"' | ||
| 165 | |||
| 166 | list_installed_packages() { | ||
| 167 | ${RPM_QUERY_CMD} -qa --qf "[%{NAME}\n]" | ||
| 168 | } | ||
| 169 | |||
| 170 | get_package_filename() { | ||
| 171 | resolve_package_rpm ${RPMCONF_TARGET_BASE}-base_archs.conf $1 | ||
| 172 | } | ||
| 173 | |||
| 174 | list_package_depends() { | ||
| 175 | pkglist=`list_installed_packages` | ||
| 176 | |||
| 177 | for req in `${RPM_QUERY_CMD} -q --qf "[%{REQUIRES}\n]" $1`; do | ||
| 178 | if echo "$req" | grep -q "^rpmlib" ; then continue ; fi | ||
| 179 | |||
| 180 | realpkg="" | ||
| 181 | for dep in $pkglist; do | ||
| 182 | if [ "$dep" = "$req" ] ; then | ||
| 183 | realpkg="1" | ||
| 184 | echo $req | ||
| 185 | break | ||
| 186 | fi | ||
| 187 | done | ||
| 188 | |||
| 189 | if [ "$realdep" = "" ] ; then | ||
| 190 | ${RPM_QUERY_CMD} -q --whatprovides $req --qf "%{NAME}\n" | ||
| 191 | fi | ||
| 192 | done | ||
| 193 | } | ||
| 194 | |||
| 195 | list_package_recommends() { | ||
| 196 | : | ||
| 197 | } | ||
| 198 | 163 | ||
| 199 | install_all_locales() { | 164 | install_all_locales() { |
| 200 | PACKAGES_TO_INSTALL="" | 165 | PACKAGES_TO_INSTALL="" |
| 201 | 166 | ||
| 202 | # Generate list of installed packages... | 167 | # Generate list of installed packages... |
| 203 | INSTALLED_PACKAGES=`list_installed_packages | egrep -v -- "(-locale-|-dev$|-doc$|^kernel|^glibc|^ttf|^task|^perl|^python)"` | 168 | INSTALLED_PACKAGES=$( \ |
| 169 | ${RPM} --root ${IMAGE_ROOTFS} -D "_dbpath ${rpmlibdir}" \ | ||
| 170 | -D "__dbi_txn create nofsync private" \ | ||
| 171 | -qa --qf "[%{NAME}\n]" | egrep -v -- "(-locale-|-dev$|-doc$|^kernel|^glibc|^ttf|^task|^perl|^python)" \ | ||
| 172 | ) | ||
| 204 | 173 | ||
| 205 | # This would likely be faster if we did it in one transaction | 174 | # This would likely be faster if we did it in one transaction |
| 206 | # but this should be good enough for the few users of this function... | 175 | # but this should be good enough for the few users of this function... |
