Patchwork [1/1] classes/package_deb: create .gz index instead of .bz2

login
register
mail settings
Submitter Paul Eggleton
Date April 10, 2012, 10:52 p.m.
Message ID <43ee4f8a379076a147644e6b933d3d0a0ab93361.1334098277.git.paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/25543/
State Accepted
Commit 518f4af617f91b209086acb51454393147aa92dd
Headers show

Comments

Paul Eggleton - April 10, 2012, 10:52 p.m.
apt is looking for Packages.gz files instead of the .bz2 files we are
currently creating and failing when they cannot be found. It is not
immediately obvious how to make the current version use the .bz2
indexes; thus create .gz indexes for now which allows us to
successfully create images.

Tested on both a Fedora 14 and an Ubuntu 11.10 host machine.

Fixes [YOCTO #1858].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/package_deb.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Saul Wold - April 11, 2012, 3:16 p.m.
On 04/10/2012 03:52 PM, Paul Eggleton wrote:
> apt is looking for Packages.gz files instead of the .bz2 files we are
> currently creating and failing when they cannot be found. It is not
> immediately obvious how to make the current version use the .bz2
> indexes; thus create .gz indexes for now which allows us to
> successfully create images.
>
> Tested on both a Fedora 14 and an Ubuntu 11.10 host machine.
>
> Fixes [YOCTO #1858].
>
> Signed-off-by: Paul Eggleton<paul.eggleton@linux.intel.com>
> ---
>   meta/classes/package_deb.bbclass |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
> index 9880258..dc0f963 100644
> --- a/meta/classes/package_deb.bbclass
> +++ b/meta/classes/package_deb.bbclass
> @@ -83,7 +83,7 @@ package_update_index_deb () {
>   			continue;
>   		fi
>   		cd ${DEPLOY_DIR_DEB}/$arch
> -		dpkg-scanpackages . | bzip2>  Packages.bz2
> +		dpkg-scanpackages . | gzip>  Packages.gz
>   		echo "Label: $arch">  Release
>   	done
>   }

Merged into OE-Core

Thanks
	Sau!

Patch

diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 9880258..dc0f963 100644
--- a/meta/classes/package_deb.bbclass
+++ b/meta/classes/package_deb.bbclass
@@ -83,7 +83,7 @@  package_update_index_deb () {
 			continue;
 		fi
 		cd ${DEPLOY_DIR_DEB}/$arch
-		dpkg-scanpackages . | bzip2 > Packages.bz2
+		dpkg-scanpackages . | gzip > Packages.gz
 		echo "Label: $arch" > Release
 	done
 }