ARMaelalip_appman_ext

Attachment 'option.patch'

Download

   1 38a39,44
   2 > // PMP - for my new config item
   3 > #include <generic/apt/config_signal.h>
   4 > // PMP & the name lookup
   5 > #include <generic/apt/aptcache.h>
   6 > #include <apt-pkg/error.h>
   7 > 
   8 139a146,170
   9 > 	// PMP DependsList is a list of all associated packages, some dependants, some prerequistes, some provides, some replaces 
  10 > 	if(!ver.DependsList().end())
  11 > 	{
  12 > 		snprintf(buf, 256, _("PMP Extract dependencies of %s"), pkg.Name());
  13 > 		pkg_subtree *deptree=new pkg_subtree(cw::util::transcode(buf));
  14 > 
  15 > 		for(pkgCache::DepIterator dep=ver.DependsList(); !dep.end(); ++dep)
  16 > 		{
  17 > 			if(dep->Type==pkgCache::Dep::Depends)
  18 > 			{
  19 >               			deptree->add_child(new pkg_item(dep.TargetPkg(), sig));
  20 >               			deptree->inc_num_packages();
  21 > 				// Right - now how do we get that packages dependancies?
  22 > 				// Does dep.TargetPkg() have an iterator already???
  23 > 				// TargetPkg().DependsList()
  24 > 				// PkgIterator FindPkg(const string &Name);
  25 > 				pkgCache::PkgIterator p=(*apt_cache_file)->FindPkg(dep.TargetPkg().Name());
  26 > 				if(pkg.end())
  27 > 			        _error->Error(_("Unable to locate package %s"), dep.TargetPkg().Name());
  28 > 			}
  29 >             	}
  30 > 
  31 > 		tree->add_child(deptree);
  32 > 	}
  33 > 
  34 164a196,208
  35 > 
  36 >         // PMP
  37 > 	// Can we access the dep list from the previous call ???
  38 > 	if(aptcfg->FindB(PACKAGE "::Show-File-System-Size", true))
  39 > 	{
  40 >         	vector<cw::fragment*> frags;
  41 >         	frags.push_back(clipbox(cw::fragf("%B%s%b%s%n", _("Minimum file system size: "), _("some k"))));
  42 > 		// TODO:
  43 > 		// frags.push_back(clipbox(cw::fragf("%B%s%b%s%n", _("Minimum file system size: "), calc_deps_total_size().c_str())));
  44 >         	tree->add_child(new cw::layout_item(cw::sequence_fragment(frags)));
  45 > 	}
  46 >         // PMP 
  47 > 

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2010-08-02 09:16:03, 3.8 KB) [[attachment:get_list.patch]]
  • [get | view] (2010-08-02 09:15:48, 1.7 KB) [[attachment:option.patch]]
 All files | Selected Files: delete move to page

You are not allowed to attach a file to this page.