1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/mine/hotfix-net-install.patch
3 # Copyright (C) 2006 - 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 Of course we do not want curl in one place and wget at the other, also
15 there is no wget in the second stange anymore ...
17 - Rene Rebe <rene@exactcode.de>
19 diff -ur mine-0.23/gasgui.c mine-0.23-fixed/gasgui.c
20 --- mine-0.23/gasgui.c 2006-06-30 18:20:36.000000000 +0200
21 +++ mine-0.23-fixed/gasgui.c 2006-06-30 20:02:47.000000000 +0200
23 snprintf(gemfile, 1024, "%s/%s-%s.%s",
24 targetdir, p->name, p->version, sourcefmt);
26 - snprintf(command, 1024, "wget -O '%s' -q '%s/%s/pkgs/%s-%s.%s'",
27 - gemfile, sourcedir, config, p->name, p->version, sourcefmt);
28 + snprintf(command, 1024, "fget '%s/%s/pkgs/%s-%s.%s' > '%s'",
29 + sourcedir, config, p->name, p->version, sourcefmt, gemfile);
31 snprintf(command, 1024, "test -s '%s' || rm -f %s", gemfile, gemfile);
33 if ( !access(gemfile, F_OK) ) return gemfile;
35 - snprintf(command, 1024, "wget -O '%s' -q '%s/%s/pkgs/%s.%s'",
36 - gemfile, sourcedir, config, p->name, sourcefmt);
37 + snprintf(command, 1024, "fget '%s/%s/pkgs/%s.%s' > '%s'",
38 + sourcedir, config, p->name, sourcefmt, gemfile);
40 snprintf(command, 1024, "test -s '%s' || rm -f %s", gemfile, gemfile);
41 diff -ur mine-0.23/readdb.c mine-0.23-fixed/readdb.c
42 --- mine-0.23/readdb.c 2006-06-30 18:20:36.000000000 +0200
43 +++ mine-0.23-fixed/readdb.c 2006-06-30 18:10:59.000000000 +0200
45 snprintf(filename, PATH_MAX, "gzip -d < %s/%s/pkgs/packages.db",
48 - snprintf(filename, PATH_MAX, "wget -O - -nv %s/%s/pkgs/packages.db | gzip -d",
49 + snprintf(filename, PATH_MAX, "fget %s/%s/pkgs/packages.db | gzip -d",
51 if ( (f = popen(filename, "r")) != NULL ) {
52 char *package, line[160];
53 --- mine-0.23/mine.c.vanilla 2024-04-13 18:30:01.409243650 +0200
54 +++ mine-0.23/mine.c 2024-04-13 18:33:02.665242855 +0200
56 if ( gemfile[c] == '/' ) gemfile[c] = '_';
57 if ( access(gemfile, F_OK) ) {
58 snprintf(command, 8192, "mkdir -p '%s';"
59 - "curl -s -S %s -o '%s.part' '%s' && "
60 + "fget '%s' > '%s.part' '%s' && "
61 "mv '%s.part' '%s'", GEMCACHE,
62 access(MINECURLOPT, F_OK) ? "" : MINECURLOPT,
63 - gemfile, url, gemfile, gemfile);
64 + url, gemfile, gemfile, gemfile);
65 if ( mine_mode_verbose )
66 - printf("Downloading %s ..\n", gemfile);
67 + printf("Downloading %s ...\n", gemfile);
71 if ( mine_mode_verbose )
72 - printf("Using cached %s ..\n", gemfile);
73 + printf("Using cached %s ...\n", gemfile);
75 snprintf(gemfile, 4096, "%s", url);