[Reportbug-maint] Reportbug Windows Patch
Ritesh Raj Sarraf
rrs at researchut.com
Sat Apr 4 06:33:03 UTC 2009
Looks like the patch didn't reach the list.
Re-sending it again.
I'm also copying the patch into this email.
rrs at champaran:/var/tmp/sources/reportbug_GIT$ cat /tmp/reportbug.patch
---
reportbug/utils.py | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/reportbug/utils.py b/reportbug/utils.py
index ce7e79d..123067b 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -27,7 +27,16 @@
import sys
import os
import re
-import pwd
+import platform
+try:
+ import pwd
+ from tempfiles import TempFile, tempfile_prefix
+except ImportError, e:
+ if platform.system() == 'Windows':
+ pass
+ else:
+ print e
+ sys.exit(1)
import commands
import shlex
import rfc822
@@ -36,7 +45,6 @@ import subprocess
import debianbts
from string import ascii_letters, digits
-from tempfiles import TempFile, tempfile_prefix
# Paths for dpkg
DPKGLIB = '/var/lib/dpkg'
--
1.6.2.1
Ritesh
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reportbug.patch
Type: text/x-patch
Size: 766 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20090404/265245c2/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20090404/265245c2/attachment.pgp
More information about the Reportbug-maint
mailing list