parent
45dd3ef14e
commit
5fbf759625
2 changed files with 6 additions and 1 deletions
|
|
@ -137,6 +137,8 @@ These options have the same meaning across multiple subcommands.
|
|||
only applies when using the libdnf5 backend or newer versions of dnf4,
|
||||
which do not load filelists by default to save memory and bandwidth.
|
||||
*dnf < 4.19.0* always loads filelists.
|
||||
*--refresh*
|
||||
Force refresh repository metadata
|
||||
|
||||
## whatrequires, whatrecommends, whatsuggests
|
||||
|
||||
|
|
|
|||
|
|
@ -322,6 +322,9 @@ class Command(metaclass=abc.ABCMeta):
|
|||
dest="smartcache",
|
||||
const="always",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--refresh", action="store_true", help="Force refresh repository metadata"
|
||||
)
|
||||
# This is mutually exclusive with --smartcache. It's still undocumented
|
||||
# and subject to change.
|
||||
cachedir_group.add_argument("--cachedir", help=argparse.SUPPRESS, type=Path)
|
||||
|
|
@ -479,7 +482,7 @@ class Command(metaclass=abc.ABCMeta):
|
|||
except ConfigError as exc:
|
||||
return str(exc)
|
||||
try:
|
||||
filled = bm.fill_sack()
|
||||
filled = bm.fill_sack(force_refresh=self.args.refresh)
|
||||
except self.backend.RepoError as exc:
|
||||
flog.debug("RepoError: ", exc_info=exc)
|
||||
return str(exc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue