<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Colin Walters wrote:
<blockquote
 cite="mid:faa16b610810040834l474e69dfv59cadb2fe6adcac1@mail.gmail.com"
 type="cite">
  <pre wrap="">2008/10/4 Tim Lauridsen <a class="moz-txt-link-rfc2396E" href="mailto:tim.lauridsen@googlemail.com"><tim.lauridsen@googlemail.com></a>:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hmmm.
1.  yum-cli -> yum-api -> pk-con -> pk -> DBUS -> pk-backend -> yum-backend
-> yum-api -> install the package

compare to

2. yum-cli -> yum-api -> install the package
    </pre>
  </blockquote>
  <pre wrap=""><!---->
You could also use the python dbus bindings directly, or python
bindings for libpk.

  </pre>
  <blockquote type="cite">
    <pre wrap="">here is kind og chicken and egg problem here.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
There's no chicken-egg - the patch would look like this:

if 'DBUS_SESSION_BUS_ADDRESS' in os.environ:
  if cmd == 'install':
   execv(['pkcon', 'install', sys.argv[1:]])
  elif cmd == 'search':
   execv(['pkcon', 'search', 'name', sys.argv[1:])
  # ..and maybe a total of 3-4 more commands.  Personally, I only use those two.

  </pre>
  <blockquote type="cite">
    <pre wrap="">take this user case.

ssh to some server
yum install foo
how would that work.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
With a change like the above, it would be unaffected, at least for now.

  </pre>
  <blockquote type="cite">
    <pre wrap="">Dont forget that PackageKit is a highlevel abstraction to the low level
package management system, making the low level system use the highlevel
abstraction of it self, is kind of crazy. IMHO.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
The (first) lower level system is yum-api, yum-cli and pkcon are
really at the same level. It would make sense long term to having them
be more merged.

  </pre>
</blockquote>
Another problem is that yum install and pkcon dont have the same
features.<br>
yum install foo\* bar\* --enablerepo=rawhide --disableplugin=forbar
--exclude=kernel\*<br>
<br>
how do you what to do that in pkcon ?<br>
<br>
It is like letting 'OpenOffice' call 'vi'.<br>
<br>
pkcon is not a full blown package manager cli, it is a cli tool to do
call the PK api, it need a lot of extra voodo magic to a full blown cli
and i to think this is the idea of pkcon.<br>
<br>
if you what to use 'pkcon install foo' then type it, and if you want to
use 'yum install foo' then type that, like you would type 'vi' to use
'vi' and not 'openoffice'.<br>
<br>
Tim<br>
</body>
</html>