summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-18 22:45:34 +0000
committerErik Troan <ewt@redhat.com>2000-05-18 22:45:34 +0000
commitc57cc0dc6a2ab1308156a357feb740aefae09b94 (patch)
treefddb2a43af68fef3239410a4d4966bacef2ae8e1 /scripts
parent5d14fb01b0ec49c2a5ad598959411d0f124bc6e4 (diff)
added patch to urllib for cd / on ftp
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upd-instroot15
1 files changed, 11 insertions, 4 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 19b919594..4182c02ae 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -520,9 +520,17 @@ echo "Patching python library..."
# always use passive mode for ftp installs
cd $DEST/usr/lib/python1.5
patch -p0 > /dev/null <<EOF
---- ./urllib.py.pasv Sun Sep 26 16:45:24 1999
-+++ ./urllib.py Sun Sep 26 16:47:56 1999
-@@ -563,6 +563,7 @@
+--- urllib.py.orig Thu May 18 18:40:49 2000
++++ urllib.py Thu May 18 18:41:35 2000
+@@ -354,6 +354,7 @@
+ path, attrs = splitattr(path)
+ path = unquote(path)
+ dirs = string.splitfields(path, '/')
++ dirs[0] = '/' + dirs[0]
+ dirs, file = dirs[:-1], dirs[-1]
+ if dirs and not dirs[0]: dirs = dirs[1:]
+ key = (user, host, port, string.joinfields(dirs, '/'))
+@@ -563,6 +564,7 @@
self.ftp = ftplib.FTP()
self.ftp.connect(self.host, self.port)
self.ftp.login(self.user, self.passwd)
@@ -530,7 +538,6 @@ patch -p0 > /dev/null <<EOF
for dir in self.dirs:
self.ftp.cwd(dir)
def retrfile(self, file, type):
-
EOF
cd -