1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../mine/net-install.patch
5 # Copyright (C) 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
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);
33 snprintf(command, 1024, "test -s '%s' || rm -f %s", gemfile, gemfile);
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);
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
46 snprintf(filename, PATH_MAX, "gzip -d < %s/%s/pkgs/packages.db",
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",
52 if ( (f = popen(filename, "r")) != NULL ) {
53 char *package, line[160];