1 # Copyright (C) 2009, Thomas Leonard
2 # See the README file for details, or visit http://0install.net.
4 from zeroinstall
import _
5 from zeroinstall
import support
7 def get_fetch_info(policy
, impl
):
8 """Get the text for a Fetch column."""
11 elif policy
.get_cached(impl
):
14 elif impl
.id.startswith('package:'):
19 src
= policy
.fetcher
.get_best_source(impl
)
21 return support
.pretty_size(src
.size
)
23 return _('(unavailable)')