* updated ktuberling (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / archiver / mine / net-install.patch
blob152da603c1b6904e67a50a2c729802cbccafdb7a
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../mine/net-install.patch
5 # Copyright (C) 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Of course we do not want curl in one place and wget at the other, also
18 there is no wget in the second stange anymore ...
20 - Rene Rebe <rene@exactcode.de>
22 diff -ur mine-0.23/gasgui.c mine-0.23-fixed/gasgui.c
23 --- mine-0.23/gasgui.c 2006-06-30 18:20:36.000000000 +0200
24 +++ mine-0.23-fixed/gasgui.c 2006-06-30 20:02:47.000000000 +0200
25 @@ -116,14 +116,14 @@
26 snprintf(gemfile, 1024, "%s/%s-%s.%s",
27 targetdir, p->name, p->version, sourcefmt);
29 - snprintf(command, 1024, "wget -O '%s' -q '%s/%s/pkgs/%s-%s.%s'",
30 + snprintf(command, 1024, "curl -s -S -o '%s' '%s/%s/pkgs/%s-%s.%s'",
31 gemfile, sourcedir, config, p->name, p->version, sourcefmt);
32 system(command);
33 snprintf(command, 1024, "test -s '%s' || rm -f %s", gemfile, gemfile);
34 system(command);
35 if ( !access(gemfile, F_OK) ) return gemfile;
37 - snprintf(command, 1024, "wget -O '%s' -q '%s/%s/pkgs/%s.%s'",
38 + snprintf(command, 1024, "curl -s -S -o '%s' '%s/%s/pkgs/%s.%s'",
39 gemfile, sourcedir, config, p->name, sourcefmt);
40 system(command);
41 snprintf(command, 1024, "test -s '%s' || rm -f %s", gemfile, gemfile);
42 diff -ur mine-0.23/readdb.c mine-0.23-fixed/readdb.c
43 --- mine-0.23/readdb.c 2006-06-30 18:20:36.000000000 +0200
44 +++ mine-0.23-fixed/readdb.c 2006-06-30 18:10:59.000000000 +0200
45 @@ -441,7 +441,7 @@
46 snprintf(filename, PATH_MAX, "gzip -d < %s/%s/pkgs/packages.db",
47 sourcedir, config);
48 else
49 - snprintf(filename, PATH_MAX, "wget -O - -nv %s/%s/pkgs/packages.db | gzip -d",
50 + snprintf(filename, PATH_MAX, "curl -s -S %s/%s/pkgs/packages.db | gzip -d",
51 sourcedir, config);
52 if ( (f = popen(filename, "r")) != NULL ) {
53 char *package, line[160];