summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Hood <squinky86@gentoo.org>2004-09-13 10:29:07 +0000
committerJon Hood <squinky86@gentoo.org>2004-09-13 10:29:07 +0000
commit2a7c00d3e79f3b6c9f44da36cc19297dc737dda9 (patch)
treeda7036f17991e59a4e600d4b798ff5fe8b4b441a /net-p2p/gift-gnutella
parentMore flexable patch and a few more checks (Manifest recommit) (diff)
downloadgentoo-2-2a7c00d3e79f3b6c9f44da36cc19297dc737dda9.tar.gz
gentoo-2-2a7c00d3e79f3b6c9f44da36cc19297dc737dda9.tar.bz2
gentoo-2-2a7c00d3e79f3b6c9f44da36cc19297dc737dda9.zip
fix node updating script
Diffstat (limited to 'net-p2p/gift-gnutella')
-rw-r--r--net-p2p/gift-gnutella/files/cacheupdate.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/net-p2p/gift-gnutella/files/cacheupdate.sh b/net-p2p/gift-gnutella/files/cacheupdate.sh
index a86eebdc65c3..3f8ce04db3fa 100644
--- a/net-p2p/gift-gnutella/files/cacheupdate.sh
+++ b/net-p2p/gift-gnutella/files/cacheupdate.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift-gnutella/files/cacheupdate.sh,v 1.1 2004/09/12 04:26:26 squinky86 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/gift-gnutella/files/cacheupdate.sh,v 1.2 2004/09/13 10:29:07 squinky86 Exp $
if [ -d ~/.giFT/Gnutella/ ]; then
cd ~/.giFT/Gnutella
@@ -10,6 +10,10 @@ if [ -d ~/.giFT/Gnutella/ ]; then
sed -i -e 's:u|::g' gwebcaches.new1
sed -i -e 's:|.*::g' gwebcaches.new1
mv gwebcaches.new1 gwebcaches
+ grep "h|" gwebcaches.new | grep -v "ph|" > nodes.new
+ sed -i -e 's:h|::g' nodes.new
+ sed -i -e 's:|.*::g' nodes.new
+ mv nodes.new nodes
rm gwebcaches.new
else
echo "Please emerge gift-gnutella and run gift-setup."