<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
S.Çağlar Onur wrote:
<blockquote cite="mid:200710261411.30789.caglar@pardus.org.tr"
type="cite">
<pre wrap="">Hi;
PK reference says following for Refresh Cache method;
"This should search for files. This should allow an application to find out
what package owns a file on the system."
But if i'm not wrong nearly all backends implements this function for
online-index updating.
Currently PiSi backend implements Refresh Cache as a "Update repository
database" function which fetchs new repository index from our package
repository also.
caglar@zangetsu ~ $ LC_ALL=C pisi help ur
update-repo (ur): Update repository databases
Usage: update-repo [<repo1> <repo2> ... <repon>]
<repoi>: repository name
Synchronizes the PiSi databases with the current repository.
If no repository is given, all repositories are updated.
But PiSi has a function called search-file which loads its entire installed
packages database and let the user find the specific package which contains
the searched file, too
caglar@zangetsu ~ $ LC_ALL=C pisi sf /usr/bin/ls
Searching for /usr/bin/ls
Package coreutils has file /bin/ls
So here are the questions :)
1. What is the real purpose of Refresh Cache in PK?
2. How other backends behaves?
3. If PiSi backend doing the right thing, do you think a privilege
called "org.freedesktop.packagekit.refresh-cache" is needed or not (i have
working on a patch for this, if needed) cause updating the repository cache
seems not a normal user's job to me.
libpackagekit/pk-client.c | 59 ++++++++++++++++++++++++++++++++------------
policy/packagekit.policy | 9 ++++++-
src/pk-engine.c | 35 +++++++++++++++++---------
src/pk-engine.h | 3 +-
src/pk-security-polkit.c | 2 +
5 files changed, 78 insertions(+), 30 deletions(-)
4. If PiSi backend behaves wrongly, how should i implement Refresh Cache and
also which method is suitable for "Update Repository" action (maybe
Update?) ?
Cheers
</pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
PackageKit mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PackageKit@lists.freedesktop.org">PackageKit@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/packagekit">http://lists.freedesktop.org/mailman/listinfo/packagekit</a>
</pre>
</blockquote>
Something must be wrong in the doc.<br>
'refresh-cache' should fetch the metedata from the repositories.<br>
<br>
Tim<br>
</body>
</html>