[packagekit] Network Status and Repository accessibility

Adrien BUSTANY madcat at mymadcat.com
Wed Jul 2 00:20:29 PDT 2008


Hi,
I have the same problem, as I use a vpn connection on my school campus. 
As far as I know NetworkManager can't know if it's really connected to 
the internet. On solution would be to ping a test ip, but that raises 
privacy concerns...

Cheers
Adrien

Tick Chen a écrit :
> Hi List, 
>   About the pk_xxx_get_network_status only detects if the system have IP or Route. 
> Either in with NM path and Unix path. That means the system *may* access
> to the network, but it does not imply the system actually can get
> refresh/install/update... from the repository. 
>
>   For example, if the system does not set DNS server well, packagekitd
> will detect the system is online but some repository in which only used
> domain name will be hard to access. Packagekitd cannot detect that. 
>
>  Is there are any easy way to detect the actual accessibility of repository?
> What come up to me is actually trying to access the repository. 
> Try to get an arbitrary file from the repository, and to see if there are any error from the server or just cannot access to the server. 
>
> Here I have some questions:
> 1. Is Network Status enough for packagekit?
> 2. Is repository accessibility the real thing the package manager cares
> about?
> 3. Is this shall be done in packagekit? Or it shall be done in backends?
>
> In my option, I think that is what backends care about. 
>
> Cheers, 
> Tick
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20080702/b125d9bd/attachment-0004.htm>


More information about the PackageKit mailing list