diff options
author | Robey Pointer <robey@src.gnome.org> | 2000-10-23 22:42:31 +0000 |
---|---|---|
committer | Robey Pointer <robey@src.gnome.org> | 2000-10-23 22:42:31 +0000 |
commit | 1e8dcd2f4665b9ab7d6519767bb4676b3b708eb1 (patch) | |
tree | 6876eb30c210580ed43f76e3287fbb0d772257e0 /components | |
parent | 04c0896f059a9d419236bc009dc940d7411ab579 (diff) | |
download | nautilus-1e8dcd2f4665b9ab7d6519767bb4676b3b708eb1.tar.gz |
Nautilus doesn't always encode "rpm_id=" into "rpm_id%3D", so check for
* components/services/install/nautilus-view/nautilus-service-instal
l-view.c: (create_package):
Nautilus doesn't always encode "rpm_id=" into "rpm_id%3D", so
check for both.
Diffstat (limited to 'components')
-rw-r--r-- | components/services/install-view/nautilus-service-install-view.c | 4 | ||||
-rw-r--r-- | components/services/install/nautilus-view/nautilus-service-install-view.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/components/services/install-view/nautilus-service-install-view.c b/components/services/install-view/nautilus-service-install-view.c index 7649a0e2d..6ceaae7b3 100644 --- a/components/services/install-view/nautilus-service-install-view.c +++ b/components/services/install-view/nautilus-service-install-view.c @@ -315,8 +315,10 @@ create_package (char *name, int local_file) pack = packagedata_new (); if (local_file) { pack->filename = g_strdup (name); - } else if (strncmp (name, "rpm_id%3D", 9)==0) { + } else if (strncmp (name, "rpm_id%3D", 9) == 0) { pack->eazel_id = g_strdup (name+9); + } else if (strncmp (name, "rpm_id=", 7) == 0) { + pack->eazel_id = g_strdup (name+7); } else { pack->name = g_strdup (name); } diff --git a/components/services/install/nautilus-view/nautilus-service-install-view.c b/components/services/install/nautilus-view/nautilus-service-install-view.c index 7649a0e2d..6ceaae7b3 100644 --- a/components/services/install/nautilus-view/nautilus-service-install-view.c +++ b/components/services/install/nautilus-view/nautilus-service-install-view.c @@ -315,8 +315,10 @@ create_package (char *name, int local_file) pack = packagedata_new (); if (local_file) { pack->filename = g_strdup (name); - } else if (strncmp (name, "rpm_id%3D", 9)==0) { + } else if (strncmp (name, "rpm_id%3D", 9) == 0) { pack->eazel_id = g_strdup (name+9); + } else if (strncmp (name, "rpm_id=", 7) == 0) { + pack->eazel_id = g_strdup (name+7); } else { pack->name = g_strdup (name); } |