xbps-repo: if fetching info from remote repo for the 'show' and 'show-files'
targets and the binary package exists in cachedir, use it. --HG-- extra : convert_revision : xtraeme%40gmail.com-20091128022129-y6y2tr0vtvy2w745
This commit is contained in:
@@ -121,7 +121,7 @@ download_package_list(prop_object_iterator_t iter)
|
||||
"filename-sha256", &sha256))
|
||||
return errno;
|
||||
|
||||
lbinfile = xbps_get_binpkg_local_path(obj);
|
||||
lbinfile = xbps_get_binpkg_local_path(obj, repoloc);
|
||||
if (lbinfile == NULL)
|
||||
return errno;
|
||||
|
||||
|
@@ -66,8 +66,8 @@ Please note that all targets are *case insensitive*.
|
||||
Shows information about binary package 'pkgname'. This will print
|
||||
the size it takes in filesystem, description, maintainer, architecture
|
||||
and other information. The first repository in the pool wins. *NOTE:
|
||||
if a remote repository is the winner it will have to fetch some info
|
||||
from it.*
|
||||
if a remote repository is the winner and binary package is not available
|
||||
in cachedir, it will fetch remotely and __on-the-fly__ the info*.
|
||||
|
||||
*show-deps 'pkgname'*::
|
||||
Shows run time dependencies for binary package 'pkgname'. The first
|
||||
@@ -75,8 +75,10 @@ Please note that all targets are *case insensitive*.
|
||||
|
||||
*show-files 'pkgname'*::
|
||||
Shows the file list for a binary package 'pkgname' by searching it
|
||||
in repository pool. *NOTE: if a remote repository is the winner it will
|
||||
have to fetch some info from it.*
|
||||
in repository pool. The first repository in the pool wins. *NOTE:
|
||||
if a remote repository is the winner and binary package is not
|
||||
available in `cachedir`, it will fetch remotely and __on-the-fly__
|
||||
the info*.
|
||||
|
||||
*sync*::
|
||||
Syncs the package index file for all registered remote repositories.
|
||||
|
Reference in New Issue
Block a user