Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
rpmlint
suse-bzip-bigger-than-100k.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File suse-bzip-bigger-than-100k.diff of Package rpmlint
--- SourceCheck.py +++ SourceCheck.py @@ -17,7 +17,7 @@ DEFAULT_VALID_SRC_PERMS = (0644, 0755) -source_regex = re.compile('\\.(tar|patch|tgz|diff)$') +source_regex = re.compile('\\.(tar|tar\.gz|patch|tgz|diff)$') compress_ext = Config.getOption("CompressExtension", "bz2") valid_src_perms = Config.getOption("ValidSrcPerms", DEFAULT_VALID_SRC_PERMS) @@ -41,7 +41,7 @@ else: spec_file = fname elif source_regex.search(fname) and compress_ext and \ - not fname.endswith(compress_ext): + not fname.endswith(compress_ext) and pkgfile.size > 120*1024: printWarning(pkg, 'source-or-patch-not-compressed', compress_ext, fname) perm = pkgfile.mode & 07777 @@ -58,8 +58,10 @@ 'source-or-patch-not-compressed', '''A source archive or file in your package is not compressed using the %s -compression method (doesn't have the %s extension).''' % -(compress_ext, compress_ext), +compression method (doesn't have the %s extension). +Files bigger than 100k should be bzip2'ed +in order to save space. To bzip2 a patch, use bzip2. To bzip2 a source +tarball, use bznew''' % (compress_ext, compress_ext), 'strange-permission', '''A file that you listed to include in your package has strange
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