rpms/trac-git-plugin/EL-4 trac-git-plugin-traceback.patch, NONE, 1.1 trac-git-plugin.spec, 1.2, 1.3

Jesse Keating (jkeating) fedora-extras-commits at redhat.com
Mon Nov 26 21:51:57 UTC 2007


Author: jkeating

Update of /cvs/pkgs/rpms/trac-git-plugin/EL-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21419/EL-4

Modified Files:
	trac-git-plugin.spec 
Added Files:
	trac-git-plugin-traceback.patch 
Log Message:
Add a patch to fix traceback issues


trac-git-plugin-traceback.patch:

--- NEW FILE trac-git-plugin-traceback.patch ---
Only in gitplugin-1639-patch/0.10/gitplugin: .git_fs.py.swp
diff -ru gitplugin/0.10/gitplugin/PyGIT.py gitplugin-1639-patch/0.10/gitplugin/PyGIT.py
--- gitplugin/0.10/gitplugin/PyGIT.py	2006-11-11 09:04:32.000000000 -0500
+++ gitplugin-1639-patch/0.10/gitplugin/PyGIT.py	2007-08-29 04:17:57.000000000 -0400
@@ -73,8 +73,10 @@
         raw = self._git_call("git-cat-file commit "+sha)
         raw = unicode(raw, self.get_commit_encoding(), 'replace')
         lines = raw.splitlines()
-
-        line = lines.pop(0)
+        if len(lines) > 0:
+            line = lines.pop(0)
+        else:
+            line = ""
         d = {}
         while line != "":
             (key,value)=line.split(None, 1)
@@ -82,7 +84,10 @@
                 d[key] = []
             d[key].append(value.strip())
             line = lines.pop(0)
-
+        if not d.has_key("committer"):
+            d["committer"] = [ "Unknown <nobody at example.com> 1187972517 -0800" ] 
+        if not d.has_key("author"):
+            d["author"] = [ "Unknown <nobody at example.com> 1187972517 -0800" ]
         return ("\n".join(lines),d)
 
     def get_file(self, sha):


Index: trac-git-plugin.spec
===================================================================
RCS file: /cvs/pkgs/rpms/trac-git-plugin/EL-4/trac-git-plugin.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- trac-git-plugin.spec	6 Jul 2007 03:22:11 -0000	1.2
+++ trac-git-plugin.spec	26 Nov 2007 21:51:23 -0000	1.3
@@ -5,7 +5,7 @@
 
 Name:           trac-git-plugin
 Version:        0.0.1
-Release:        3.20070705svn%{svnrev}%{?dist}
+Release:        4.20070705svn%{svnrev}%{?dist}
 Summary:        GIT version control plugin for Trac
 
 Group:          Applications/Internet
@@ -15,6 +15,7 @@
 #                                  cd gitplugin/0.10/; \
 #                                  python setup.py sdist --formats gztar
 Source0:        TracGit-%{version}.tar.gz
+Patch0:         trac-git-plugin-traceback.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
@@ -27,6 +28,7 @@
 
 %prep
 %setup -n TracGit-%{version} -q
+%patch0 -p2
 
 
 %build
@@ -54,6 +56,9 @@
 
 
 %changelog
+* Mon Nov 26 2007 Jesse Keating <jkeating at redhat.com> - 0.0.1-4.20070705svn1536
+- Add a patch to prevent tracebacks when using this plugin
+
 * Thu Jul 05 2007 Jesse Keating <jkeating at redhat.com> - 0.0.1-3.20070705svn1536
 - Require trac and python-setuptools as well
 




More information about the fedora-extras-commits mailing list