Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
rpmlint-mini
package-rpmlintrc.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File package-rpmlintrc.diff of Package rpmlint-mini
--- Config.py 2006-07-10 23:11:14.000000000 +0200 +++ Config.py 2007-06-05 01:10:16.000000000 +0200 @@ -72,7 +72,7 @@ # handle the list of directories to look for checks -_dirs=["/usr/share/rpmlint"] +_dirs=["/opt/testing/share/rpmlint"] def addCheckDir(dir): global _dirs --- rpmlint.py 2007-03-15 20:49:31.000000000 +0100 +++ rpmlint.py 2007-06-05 01:11:19.000000000 +0200 @@ -180,7 +180,7 @@ sys.exit(1) # process options -checkdir='/usr/share/rpmlint' +checkdir='/opt/testing/share/rpmlint' verbose=0 extract_dir=None prof=0 @@ -189,7 +189,8 @@ info_error=0 # load global config files -for f in ('/usr/share/rpmlint/config','/etc/rpmlint/config','/etc/rpmlint/factory.config'): +for f in ('/opt/testing/share/rpmlint/config', + '/etc/rpmlint/config', '/etc/rpmlint/factory.config'): try: execfile(f) except IOError: @@ -234,12 +235,19 @@ print 'unknown option', o # load user config file +userlist = [os.path.expanduser(conf_file)] try: - execfile(os.path.expanduser(conf_file)) -except IOError: + userlist += [rc for rc in os.listdir("/usr/src/packages/SOURCES") + if rc.endswith("rpmlintrc")] +except: pass -except Exception,E: - sys.stderr.write('Error loading %s, skipping: %s\n' % (conf_file, E )) +for f in userlist: + try: + execfile(os.path.join('/usr/src/packages/SOURCES', f)) + except IOError: + pass + except Exception,E: + sys.stderr.write('Error loading %s, skipping: %s\n' % (conf_file, E )) if not extract_dir: extract_dir=Config.getOption('ExtractDir', '/tmp') --- MenuXDGCheck.py +++ MenuXDGCheck.py @@ -21,7 +21,7 @@ def check_file(self, pkg, filename): f = pkg.dirName() + filename - st = getstatusoutput(('desktop-file-validate', f), 1) + st = getstatusoutput(('/opt/testing/bin/desktop-file-validate', f), 1) if st[0]: if st[1].find('error:') != -1: printError(pkg, 'invalid-desktopfile', filename, st[1].split('error: ')[1])
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