diff options
author | Filip Zyzniewski <filip.zyzniewski@gmail.com> | 2011-02-24 04:42:28 +0000 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2011-02-23 14:26:17 -0700 |
commit | 90c3b8c9fe57044334df3232809288a0dfde39d8 (patch) | |
tree | b02ae5bc23735d3a8151f2ae8c08798c4e51d2bd /classes/rootfs_deb.bbclass | |
parent | 2977a53f5e85194273f87089758eeb39193ba1a9 (diff) | |
download | openembedded-90c3b8c9fe57044334df3232809288a0dfde39d8.tar.gz |
package_deb.bbclass: create a proper package_update_index_deb task.
Until now the Packages.gz generation was hardcoded in rootfs_deb_do_rootfs.
(Tom Rini: While in here, trailing whitespace cleanup)
Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'classes/rootfs_deb.bbclass')
-rw-r--r-- | classes/rootfs_deb.bbclass | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/classes/rootfs_deb.bbclass b/classes/rootfs_deb.bbclass index 2130ad6a33..bfa361c9cd 100644 --- a/classes/rootfs_deb.bbclass +++ b/classes/rootfs_deb.bbclass @@ -24,11 +24,6 @@ fakeroot rootfs_deb_do_rootfs () { continue; fi cd ${DEPLOY_DIR_DEB}/$arch - rm -f Packages.gz Packages Packages.bz2 - - # apt-native ignores Packages.bz2 unless /bin/bzip2 exists - # on the build host, so stick with gzip - dpkg-scanpackages . | gzip > Packages.gz echo "Label: $arch" > Release @@ -44,7 +39,7 @@ fakeroot rootfs_deb_do_rootfs () { cat "${STAGING_ETCDIR_NATIVE}/apt/apt.conf.sample" \ | sed -e 's#Architecture ".*";#Architecture "${DPKG_ARCH}";#' \ - | sed -e 's#status ".*";#status "${IMAGE_ROOTFS}/var/lib/dpkg/status";#' \ + | sed -e 's#status ".*";#status "${IMAGE_ROOTFS}/var/lib/dpkg/status";#' \ | sed -e 's#DPkg::Options {".*"};#DPkg::Options {"--root=${IMAGE_ROOTFS}";"--admindir=${IMAGE_ROOTFS}/var/lib/dpkg";"--force-all";"--no-debsig"};#' \ > "${STAGING_ETCDIR_NATIVE}/apt/apt-rootfs.conf" @@ -134,7 +129,7 @@ fakeroot rootfs_deb_do_rootfs () { ${ROOTFS_POSTPROCESS_COMMAND} - log_check rootfs + log_check rootfs } rootfs_deb_log_check() { @@ -143,7 +138,7 @@ rootfs_deb_log_check() { lf_txt="`cat $lf_path`" for keyword_die in "E:" - do + do if (echo "$lf_txt" | grep -v log_check | grep "$keyword_die") >/dev/null 2>&1 then echo "log_check: There were error messages in the logfile" @@ -153,7 +148,7 @@ rootfs_deb_log_check() { do_exit=1 fi done - test "$do_exit" = 1 && exit 1 + test "$do_exit" = 1 && exit 1 true } |