diff options
author | Chris Rees <crees@FreeBSD.org> | 2012-10-29 11:37:56 +0000 |
---|---|---|
committer | Chris Rees <crees@FreeBSD.org> | 2012-10-29 11:37:56 +0000 |
commit | bcc0be2d8132f59462f7fafbdafc120ffa84b932 (patch) | |
tree | 3949417c49ca6bc5a47cd187b26e33dc12755683 /Tools/scripts | |
parent | 136c7729bb171c7b2465fa476f14b5fd73ea7771 (diff) | |
download | ports-bcc0be2d8132f59462f7fafbdafc120ffa84b932.tar.gz ports-bcc0be2d8132f59462f7fafbdafc120ffa84b932.zip |
Notes
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-x | Tools/scripts/addport | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport index 15d0d49381dd..e7c83e0b8c56 100755 --- a/Tools/scripts/addport +++ b/Tools/scripts/addport @@ -41,7 +41,6 @@ use Cwd "abs_path"; use Getopt::Std; use Sys::Hostname; -use LWP::Simple; use locale; use strict; @@ -324,8 +323,8 @@ foreach my $thisdir (@dirs) { # Until svn revs are in the database, we'll use dates. print "Checking for previous versions of $category/$portname... \n"; my $previous_incarnation = "bogus"; - my $oldportlist; - if ($oldportlist = get('http://people.FreeBSD.org/~crees/removed_ports/index.xml')) { + my $oldportlist = `/usr/bin/fetch -qo - http://people.FreeBSD.org/~crees/removed_ports/index.xml`; + if ($oldportlist !=~ /^fetch:[^:]+: Not Found/) { foreach (split("\n", $oldportlist)) { if (/^ +\<port\>$category\/$portname(?:\<removed_revision\>r([0-9]*)\<\/removed_revision\>)?\<removed_date\>([^<]*)/) { print "Found one!\n"; |