File createrepo-0.9.9-noarch.patch of Package createrepo
--- genpkgmetadata.py.old 2013-02-14 12:07:26.000000000 +0000
+++ genpkgmetadata.py 2013-02-14 12:08:38.000000000 +0000
@@ -25,6 +25,11 @@
from optparse import OptionParser
import time
+#add ability to load createrepo module from subfolder
+cmd_folder = os.path.dirname(os.path.abspath(__file__))
+if cmd_folder not in sys.path:
+ sys.path.insert(0, cmd_folder)
+
import createrepo
from createrepo import MDError
from createrepo.utils import errorprint, _
--- modifyrepo.py.old 2012-12-14 16:40:43.000000000 +0000
+++ modifyrepo.py 2013-02-14 12:11:21.000000000 +0000
@@ -23,6 +23,12 @@
import os
import sys
+
+#add ability to load createrepo module from subfolder
+cmd_folder = os.path.dirname(os.path.abspath(__file__))
+if cmd_folder not in sys.path:
+ sys.path.insert(0, cmd_folder)
+
from createrepo import __version__
from createrepo.utils import checksum_and_rename, GzipFile, MDError
from yum.misc import checksum
--- worker.py.old 2013-02-06 15:18:19.000000000 +0000
+++ worker.py 2013-02-14 12:34:56.000000000 +0000
@@ -1,9 +1,15 @@
#!/usr/bin/python -tt
+import os
import sys
+
+#add ability to load createrepo module from subfolder
+cmd_folder = os.path.dirname(os.path.abspath(__file__))
+if cmd_folder not in sys.path:
+ sys.path.insert(0, cmd_folder)
+
import yum
import createrepo
-import os
import rpmUtils
from optparse import OptionParser
--- mergerepo.py.old 2013-02-14 12:07:14.000000000 +0000
+++ mergerepo.py 2013-02-14 12:40:44.000000000 +0000
@@ -17,6 +17,12 @@
# merge repos from arbitrary repo urls
import sys
+import os
+#add ability to load createrepo module from subfolder
+cmd_folder = os.path.dirname(os.path.abspath(__file__))
+if cmd_folder not in sys.path:
+ sys.path.insert(0, cmd_folder)
+
import createrepo.merge
from optparse import OptionParser