hyun.psd; gzuncompress
|
Server IP : 173.236.192.202 / Your IP : 216.73.216.85 Web Server : Apache System : Linux iad1-shared-e1-03 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : andfor18 ( 14551322) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /lib/ubuntu-advantage/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] | [ Lock Shell ] | [ Logout ] |
|---|
#!/usr/bin/env python3
import logging
from uaclient import log
from uaclient.apt import update_esm_caches
from uaclient.config import UAConfig
LOG = logging.getLogger("ubuntupro.lib.esm_cache")
def main(cfg: UAConfig) -> None:
try:
update_esm_caches(cfg)
except Exception as e:
msg = getattr(e, "msg", str(e))
LOG.error("Error updating the cache: %s", msg)
if __name__ == "__main__":
log.setup_journald_logging()
cfg = UAConfig()
main(cfg)