Author: cazfi
Date: Mon Aug 22 22:39:08 2016
New Revision: 33670

URL: http://svn.gna.org/viewcvs/freeciv?rev=33670&view=rev
Log:
Changed modpack download description file suffix from ".modpack" to ".mpdl"

See patch #7641

Modified:
    trunk/tools/download.c
    trunk/tools/download.h

Modified: trunk/tools/download.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/tools/download.c?rev=33670&r1=33669&r2=33670&view=diff
==============================================================================
--- trunk/tools/download.c      (original)
+++ trunk/tools/download.c      Mon Aug 22 22:39:08 2016
@@ -104,12 +104,13 @@
     return _("No URL given");
   }
 
-  if (strlen(URL) < strlen(MODPACK_SUFFIX)
-      || strcmp(URL + strlen(URL) - strlen(MODPACK_SUFFIX), MODPACK_SUFFIX)) {
+  if (strlen(URL) < strlen(MODPACKDL_SUFFIX)
+      || strcmp(URL + strlen(URL) - strlen(MODPACKDL_SUFFIX),
+                MODPACKDL_SUFFIX)) {
     return _("This does not look like modpack URL");
   }
 
-  for (start_idx = strlen(URL) - strlen(MODPACK_SUFFIX);
+  for (start_idx = strlen(URL) - strlen(MODPACKDL_SUFFIX);
        start_idx > 0 && URL[start_idx - 1] != '/';
        start_idx--) {
     /* Nothing */

Modified: trunk/tools/download.h
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/tools/download.h?rev=33670&r1=33669&r2=33670&view=diff
==============================================================================
--- trunk/tools/download.h      (original)
+++ trunk/tools/download.h      Mon Aug 22 22:39:08 2016
@@ -1,4 +1,4 @@
-/********************************************************************** 
+/***********************************************************************
  Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@
 /* modinst */
 #include "modinst.h"
 
-#define MODPACK_SUFFIX ".modpack"
+#define MODPACKDL_SUFFIX ".mpdl"
 
 #define MODPACK_CAPSTR "+Freeciv-modpack-Devel-2016.Feb.05"
 #define MODLIST_CAPSTR "+Freeciv-modlist-Devel-2016.Feb.05"


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to