Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
createrepo
createrepo-0.9.8-disable-symlinks.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File createrepo-0.9.8-disable-symlinks.patch of Package createrepo
--- genpkgmetadata.py.orig 2010-05-25 11:25:43.000000000 +0200 +++ genpkgmetadata.py 2010-05-25 11:26:01.000000000 +0200 @@ -90,6 +90,8 @@ help="<dir> = optional directory to output to") parser.add_option("-S", "--skip-symlinks", dest="skip_symlinks", default=False, action="store_true", help="ignore symlinks of packages") + parser.add_option("--skip-symlinked-dirs", dest="skip_symlinked_dirs", + default=False, action="store_true", help="ignore symlinked directories") parser.add_option("--changelog-limit", dest="changelog_limit", default=None, help="only import the last N changelog entries") parser.add_option("--unique-md-filenames", dest="unique_md_filenames", --- createrepo/__init__.py.orig 2010-05-25 11:26:06.000000000 +0200 +++ createrepo/__init__.py 2010-05-25 11:27:12.000000000 +0200 @@ -82,6 +82,7 @@ self.file_patterns = ['.*bin\/.*', '^\/etc\/.*', '^\/usr\/lib\/sendmail$'] self.dir_patterns = ['.*bin\/.*', '^\/etc\/.*'] self.skip_symlinks = False + self.skip_symlinked_dirs = False self.pkglist = [] self.database_only = False self.primaryfile = 'primary.xml.gz' @@ -261,6 +262,8 @@ func(arg, top, names) for name in names: name = os.path.join(top, name) + if self.conf.skip_symlinked_dirs and os.path.islink(name): + continue if os.path.isdir(name): self._os_path_walk(name, func, arg) def getFileList(self, directory, ext):
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