Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:StefanBruens:branches:devel:openSUSE:Factory:rpmlint
rpmlint
report-progress.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File report-progress.diff of Package rpmlint
--- a/rpmlint 2015-09-20 11:23:38.000000000 +0200 +++ b/rpmlint 2015-10-09 00:57:21.615922555 +0200 @@ -18,6 +18,7 @@ import stat import sys import tempfile +import time try: import importlib @@ -213,11 +214,21 @@ if verbose: printInfo(pkg, 'checking') + if progress: + print('%s.%s: I: filelist-initialization' % (pkg.name, pkg.arch)) + start = time.time() + pkg.files() + if progress: + print('%s.%s: I: filelist-initialization %0.1f s' % (pkg.name, pkg.arch, time.time() - start)) + for name in Config.allChecks(): check = AbstractCheck.AbstractCheck.known_checks.get(name) if check: + start = time.time() check.verbose = verbose check.check(pkg) + if progress: + print('%s.%s: I: check-completed %-23s: %4.1f s' % (pkg.name, pkg.arch, name, time.time() - start)) else: Pkg.warn('(none): W: unknown check %s, skipping' % name) @@ -273,6 +284,7 @@ checkdir = '/usr/share/rpmlint' checks = [] verbose = False +progress = False extract_dir = None conf_file = _default_user_conf if not os.path.exists(os.path.expanduser(conf_file)): @@ -365,6 +377,8 @@ if not extract_dir: extract_dir = Config.getOption('ExtractDir', tempfile.gettempdir()) +progress = Config.getOption('ReportProgress', False) + if info_error: Config.info = True sys.path[0:0] = Config.checkDirs()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor