mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 09:13:37 +02:00
Functions abstracting the distribution are not only needed in the context of the distro subcommand, but also by other code, so make the bulk of the code abstracting the distribution available in some place more universally useful than below cmds.distro. This commit leaves the source files mostly unchanged. They are only patched to fix import paths, so that functionality is preserved. Refactoring the code from command-line API to library API will be done by the next commit. Signed-off-by: Jan Lindemann <jan@janware.com>
14 lines
309 B
Python
14 lines
309 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from argparse import Namespace
|
|
|
|
from ...Cmd import Cmd
|
|
from ..BeRefresh import BeRefresh as Base
|
|
|
|
class Refresh(Base):
|
|
|
|
def __init__(self, parent: Cmd):
|
|
super().__init__(parent)
|
|
|
|
async def run(self, args: Namespace):
|
|
return await self.util.zypper(['refresh'])
|