File createrepo-0.9.9-disable-symlinks.patch of Package createrepo

diff -ru a/createrepo/__init__.py b/createrepo/__init__.py
--- a/createrepo/__init__.py	2011-01-26 18:14:30.000000000 +0100
+++ b/createrepo/__init__.py	2012-01-25 14:58:01.560497445 +0100
@@ -84,6 +84,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'
@@ -280,6 +281,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):
Only in b/createrepo: .__init__.py.swp
diff -ru a/genpkgmetadata.py b/genpkgmetadata.py
--- a/genpkgmetadata.py	2011-01-26 18:14:30.000000000 +0100
+++ b/genpkgmetadata.py	2012-01-25 14:57:19.262496442 +0100
@@ -92,6 +92,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",
Only in b: .genpkgmetadata.py.swp
openSUSE Build Service is sponsored by