]> err.no Git - mapper/commitdiff
define the repo list url.
authorKaj-Michael Lang <milang@onion.tal.org>
Wed, 12 Sep 2007 07:57:00 +0000 (10:57 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Wed, 12 Sep 2007 07:57:00 +0000 (10:57 +0300)
src/map-repo.c

index feca4f59f2eac089a49ef043f10aa7fc0b472a08..9b5e45530b19539f21b284398f7fbd1f6bf0f6db 100644 (file)
@@ -25,6 +25,8 @@
 #include "mapper-types.h"
 #include "ui-common.h"
 
+#define MAP_REPO_LIST_URL "http://www.gnuite.com/nokia770/maemo-mapper/repos.txt"
+
 typedef struct _RepoManInfo RepoManInfo;
 struct _RepoManInfo {
        GtkWidget *dialog;
@@ -502,11 +504,8 @@ GtkWidget *confirm;
                printf("%s()\n", __PRETTY_FUNCTION__);
 
                /* Get repo config file from www.gnuite.com. */
-               if (GNOME_VFS_OK !=
-                   (vfs_result =
-                    gnome_vfs_read_entire_file
-                    ("http://www.gnuite.com/nokia770/maemo-mapper/repos.txt",
-                     &size, &bytes))) {
+               if (GNOME_VFS_OK != (vfs_result = gnome_vfs_read_entire_file
+                    (MAP_REPO_LIST_URL, &size, &bytes))) {
                        popup_error(rmi->dialog,
                                    _
                                    ("An error occurred while retrieving the repositories.  "