OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: 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. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Of course we do not want curl in one place and wget at the other, also
  17. there is no wget in the second stange anymore ...
  18. - 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
  22. @@ -116,14 +116,14 @@
  23. snprintf(gemfile, 1024, "%s/%s-%s.%s",
  24. targetdir, p->name, p->version, sourcefmt);
  25. - snprintf(command, 1024, "wget -O '%s' -q '%s/%s/pkgs/%s-%s.%s'",
  26. + snprintf(command, 1024, "curl -s -S -o '%s' '%s/%s/pkgs/%s-%s.%s'",
  27. gemfile, sourcedir, config, p->name, p->version, sourcefmt);
  28. system(command);
  29. snprintf(command, 1024, "test -s '%s' || rm -f %s", gemfile, gemfile);
  30. system(command);
  31. if ( !access(gemfile, F_OK) ) return gemfile;
  32. - snprintf(command, 1024, "wget -O '%s' -q '%s/%s/pkgs/%s.%s'",
  33. + snprintf(command, 1024, "curl -s -S -o '%s' '%s/%s/pkgs/%s.%s'",
  34. gemfile, sourcedir, config, p->name, sourcefmt);
  35. system(command);
  36. snprintf(command, 1024, "test -s '%s' || rm -f %s", gemfile, gemfile);
  37. diff -ur mine-0.23/readdb.c mine-0.23-fixed/readdb.c
  38. --- mine-0.23/readdb.c 2006-06-30 18:20:36.000000000 +0200
  39. +++ mine-0.23-fixed/readdb.c 2006-06-30 18:10:59.000000000 +0200
  40. @@ -441,7 +441,7 @@
  41. snprintf(filename, PATH_MAX, "gzip -d < %s/%s/pkgs/packages.db",
  42. sourcedir, config);
  43. else
  44. - snprintf(filename, PATH_MAX, "wget -O - -nv %s/%s/pkgs/packages.db | gzip -d",
  45. + snprintf(filename, PATH_MAX, "curl -s -S %s/%s/pkgs/packages.db | gzip -d",
  46. sourcedir, config);
  47. if ( (f = popen(filename, "r")) != NULL ) {
  48. char *package, line[160];