Skip to content

Commit

Permalink
update rss
Browse files Browse the repository at this point in the history
  • Loading branch information
nazunalika committed Sep 24, 2023
1 parent 8ccad56 commit 129f1e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mangle/generators/rss.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@ def main(options):
print('repo data failure')
sys.exit(1)

if options.disable_all_modules:
modobj = dnf.module.module_base.ModuleBase(dnfobj)
modobj.disable(['*'])

sack_query = dnfobj.sack.query().available()
#recent = sack_query.filter(latest_per_arch=1)
recent = dnfobj.get_recent(days=days)
Expand Down Expand Up @@ -300,6 +304,8 @@ def main(options):
help='List of architectures to care about')
parser.add_argument('--config', type=str, default='',
help='A dnf configuration to use if you do not want to use the default')
parser.add_argument('--disable-all-modules', action='store_true',
help='Disables all modules. Useful for getting newer than 8 data.')
parser.add_argument('repoids', metavar='N', type=str, nargs='+')
results = parser.parse_args()

Expand Down

0 comments on commit 129f1e2

Please sign in to comment.