Re: Wierd traceback on update [patch does not work]

John Berninger <[email protected]> Mon, 20 Jan 2003 17:08:52 -0500
Newsgroups gmane.network.up2date.current.devel
Message-ID <[email protected]>
--vk/v8fjDPiDepTtA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Oops....  forgot to attach the actual patch.  Sorry...

-- 
Thank you,
John Berninger

Systems Administrator		[email protected]
Department of Mathematics	Box 8205, Harrelson Hall
NC State University		Raleigh, NC 27695
Phone:  (919)515-6315		Fax:	(919)515-3798

GPG Key ID: A8C1D45C
        Fingerprint: B1BB 90CB 5314 3113 CF22  66AE 822D 42A8 A8C1 D45C
--

--vk/v8fjDPiDepTtA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch.out"

diff -ruN -x SCCS -x BitKeeper -x ChangeSet -x README -x CHANGELOG -x Makefile -x RELEASE-NOTES -x docs -x future current-1.4/src/channel.py current-1.4.2/src/channel.py
--- current-1.4/src/channel.py	2003-01-20 17:00:34.000000000 -0500
+++ current-1.4.2/src/channel.py	2003-01-20 17:02:42.000000000 -0500
@@ -839,6 +847,8 @@
         linkname = misc.PathJoin(self.chanInfo['package_dir'],
                                  os.path.basename(pathname))
         if not os.path.exists(linkname):
+            if os.path.islink(linkname):
+                os.unlink(linkname)
             os.symlink(pathname, linkname)
 
         # Cache the header itself for getPackageHeader() call

--vk/v8fjDPiDepTtA--