centos-package-cron icon indicating copy to clipboard operation
centos-package-cron copied to clipboard

error when running - Argument -- updates -- is not "all", a positive number or a date

Open rich-preservica opened this issue 5 years ago • 2 comments

[root@access ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core)

When issuing centos-package-cron with any arguments, I get:

Argument -- updates -- is not "all", a positive number or a date

I suspect the issue having to do with the yum changelog command being run?

`Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile

  • base: repos-va.psychz.net
  • epel: mirror.cogentco.com
  • extras: repos-va.psychz.net
  • updates: repos-va.psychz.net
  • webtatic: us-east.repo.webtatic.com

Argument -- updates -- is not "all", a positive number or a date

Argument -- updates -- is not "all", a positive number or a date

Argument -- updates -- is not "all", a positive number or a date ...

tzdata-2019a-1.el7 Unable to parse changelog for package tzdata version 2019a release 1.el7

tzdata-java-2019a-1.el7 Unable to parse changelog for package tzdata-java version 2019a release 1.el7

util-linux-2.23.2-59.el7_6.1 Unable to parse changelog for package util-linux version 2.23.2 release 59.el7_6.1

xfsprogs-4.5.0-19.el7_6 Unable to parse changelog for package xfsprogs version 4.5.0 release 19.el7_6 `

rich-preservica avatar Apr 26 '19 14:04 rich-preservica

FYI: This can be resolved by locating the following line within your package_fetcher.py (eg Line 89 in /usr/lib/python2.7/site-packages/centos_package_cron/package_fetcher.py):

    args += ['changelog', 'updates', name]

And updating (by inserting an "all" argument) it to the following:

    args += ['changelog', 'all', 'updates', name]

Kevin-NZ avatar Nov 01 '19 00:11 Kevin-NZ

I just don't have the time right now to work on this project. I'm happy to take pull requests.

wied03 avatar Nov 08 '19 16:11 wied03