[haiku-bugs] Re: [Haiku] #12917: get_package_dependencies needs to be refactored

  • From: "kallisti5" <trac@xxxxxxxxxxxx>
  • Date: Tue, 30 Aug 2016 20:00:25 -0000

#12917: get_package_dependencies needs to be refactored
--------------------------------+----------------------------
   Reporter:  kallisti5         |      Owner:  kallisti5
       Type:  enhancement       |     Status:  new
   Priority:  normal            |  Milestone:  Unscheduled
  Component:  Kits/Package Kit  |    Version:  R1/Development
 Resolution:                    |   Keywords:
 Blocked By:                    |   Blocking:
Has a Patch:  0                 |   Platform:  All
--------------------------------+----------------------------

Comment (by kallisti5):

 I've tried to solve this as elegantly as possible... it seems like you can
 use a repo config vs a repository info definition... however the package
 kit seems to be crashing and not giving much info.

 The alternate is calling curl within the get_package_dependencies
 binary... which I want to avoid for the moment.

 {{{
 
/home/kallisti5/Code/haiku/generated.x86_64/objects/linux/x86_64/release/tools/get_package_dependencies/get_package_dependencies
 
/home/kallisti5/Code/haiku/generated.x86_64/objects/haiku/x86_64/packaging/repositories
 /HaikuPorts-config
 
/home/kallisti5/Code/haiku/generated.x86_64/objects/haiku/x86_64/packaging/repositories
 /Haiku-config --
 /home/kallisti5/Code/haiku/generated.x86_64/download/dejavu-2.34-2-any.hpkg
 terminate called after throwing an instance of
 'BPackageKit::BManager::BPrivate::BFatalErrorException'
 Aborted (core dumped)
 }}}

 Everything works until I pass the BRepositoryConfig to BRepositoryBuilder.
 It says it will accept it... but the results seem to disagree.  Patch
 attached.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12917#comment:8>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: