|
Lines 668-674
def get_apps(no_cache=False):
Link Here
|
| 668 |
except (urllib2.HTTPError, urllib2.URLError) as e: |
668 |
except (urllib2.HTTPError, urllib2.URLError) as e: |
| 669 |
# should not happen as we only access cached, local data |
669 |
# should not happen as we only access cached, local data |
| 670 |
raise UMC_CommandError(_('Could not query App Center: %s') % e) |
670 |
raise UMC_CommandError(_('Could not query App Center: %s') % e) |
| 671 |
_apps = [iapp.to_dict(package_manager) for iapp in applications if iapp.get('withoutrepository')] |
671 |
_apps = [iapp.to_dict(package_manager, hosts=[ucr.get('hostname')]) for iapp in applications if iapp.get('withoutrepository')] |
| 672 |
return _apps |
672 |
return _apps |
| 673 |
|
673 |
|
| 674 |
def is_proxy(proxy): |
674 |
def is_proxy(proxy): |