[projects/distfiles] There is no ftp on distfiles anymore. Also scp path has changed slightly (due to chroot usage).
arekm
arekm at pld-linux.org
Wed Nov 26 20:53:02 CET 2025
commit 42f3945e30c984922bc74067e24fcd0f13bc8acb
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Nov 26 20:52:52 2025 +0100
There is no ftp on distfiles anymore. Also scp path has changed slightly (due to chroot usage).
file-fetcher.pl | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/file-fetcher.pl b/file-fetcher.pl
index 4f9ee32..c239356 100755
--- a/file-fetcher.pl
+++ b/file-fetcher.pl
@@ -10,8 +10,8 @@ $commits_list = "pld-cvs-commit\@lists.pld-linux.org";
$spool_dir = "./spool";
$copy_dir = "src"; # relative to ftp root
$no_url_dir = "./upload";
-$df_server = "distfiles.pld-linux.org";
-$df_scp = "plddist\@distfiles.pld-linux.org:ftp";
+$df_server = "https://distfiles.pld-linux.org";
+$df_scp = "plddist\@distfiles.pld-linux.org:";
$user_agent = "PLD/distfiles";
@md5 = ();
@@ -111,8 +111,9 @@ sub got_on_distfiles($$)
{
my ($md5, $url) = @_;
my $p = by_md5($md5, $url);
- my $l = `lftp -c 'debug 0; open $df_server; quote size \"$p\"'`;
- return $l =~ /^213 /;
+
+ my $rc = system('wget', '-q', '--spider', "$df_server/$p");
+ return $rc == 0;
}
sub copy_to_df($$)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/distfiles.git/commitdiff/42f3945e30c984922bc74067e24fcd0f13bc8acb
More information about the pld-cvs-commit
mailing list