Fixing debian bug 605185

Neil Muller <[email protected]>
Newsgroups gmane.comp.python.sqlobject
Message-ID <CAPzz3hb7+1BqqoN=xX1eNxTAihNTO4J5ZxMbni40DRowOrERDg@mail.gmail.com>
Debian currently has a bug against sqlobject for an insecure use of
PYTHONPATH in the docs/rebuild script -
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=605185 . While it is
a minor issue, it's easy enough to do the right thing, so seems worth
fixing.

Patch attached.

-- 
Neil Muller
[email protected]

I've got a gmail account. Why haven't I become cool?

------------------------------------------------------------------------------
RSA&reg; Conference 2012
Save &#36;700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
sqlobject_605185.diff (text/x-diff, 458 B)
Index: docs/rebuild
===================================================================
--- docs/rebuild	(revision 4465)
+++ docs/rebuild	(working copy)
@@ -3,7 +3,7 @@
 here=`pwd`
 parent=`dirname $here`
 echo "Adding $parent to \$PYTHONPATH"
-export PYTHONPATH=$parent:$PYTHONPATH
+export PYTHONPATH=$parent${PYTHONPATH:+:$PYTHONPATH}
 
 NORMAL="Authors DeveloperGuide FAQ Inheritance News
         SQLBuilder SQLObject SelectResults TODO Versioning Views
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.