Sha256: 551797bc941212e89dc351734ba189b20213bb060d842a5a48b97669eaf7e06b

Contents?: true

Size: 242 Bytes

Versions: 1

Compression:

Stored size: 242 Bytes

Contents

#!/usr/bin/python
import yum
import json

base = yum.YumBase()
package_list = base.doPackageLists(pkgnarrow='updates', patterns='', ignore_case=True)

if package_list.updates:
  count = len(package_list.updates)
else:
  count = 0
print count

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
remon-0.1.0 lib/remon/scripts/yum-status