apt-ftparchive wouldn't append Task field to Packages when package's Architecture is all

jacky gtkdict at yahoo.com.cn
Thu Nov 9 03:38:07 GMT 2006


I use apt-ftparchive to generate Packages file. But
when package's Architecture is all, apt-ftparchive
wouldn't appedn Task field to Packages. The reason is
in override file, all packages have a given
architecture. For example, edgy-wallpapers's
Architecture is all, but in override.edgy.extra.main
the description is
edgy-wallpapers/i386    Task    ubuntu-desktop,
xubuntu-desktop


Below is apt-ftparchive's configure files:

file apt-ftparchive-release.conf

APT::FTPArchive::Release::Origin "Ubuntu";
APT::FTPArchive::Release::Label "Ubuntu";
APT::FTPArchive::Release::Suite "edgy";
APT::FTPArchive::Release::Version "6.10";
APT::FTPArchive::Release::Codename "edgy";
APT::FTPArchive::Release::Date "Fri Sep  22 03:31:06
UTC 2006";
APT::FTPArchive::Release::Architectures "i386";
APT::FTPArchive::Release::Components "main
restricted";
APT::FTPArchive::Release::Description "Ubuntu Edgy
6.10";

file apt-ftparchive-deb.conf

Dir {
  ArchiveDir "/home/user/ubuntu/";
};

TreeDefault {
  Directory "pool/";
};

BinDirectory "pool/main" {
  Packages "dists/edgy/main/binary-i386/Packages";
  BinOverride
"/home/user/ubuntu-custom/overrides/override.edgy.main";
  ExtraOverride
"/home/user/ubuntu-custom/overrides/override.edgy.extra.main";
};

BinDirectory "pool/restricted" {
  Packages
"dists/edgy/restricted/binary-i386/Packages";
  BinOverride
"/home/user/ubuntu-custom/overrides/override.edgy.restricted";
  ExtraOverride
"/home/user/ubuntu-custom/overrides/override.edgy.extra.restricted";
};

Default {
  Packages {
    Extensions ".deb";
    Compress ". gzip";
  };
};

Contents {
  Compress "gzip";
};

command: 
apt-ftparchive -c ~/etc/apt-ftparchive-release.conf
generate ~/etc/apt-ftparchive-deb.conf



		
___________________________________________________________ 
抢注雅虎免费邮箱-3.5G容量,20M附件! 
http://cn.mail.yahoo.com



More information about the ubuntu-devel mailing list