summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-11-26 21:20:05 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-11-26 21:20:05 +0900
commit5da4634d7e0560ac6c881997edef8574e470bee2 (patch)
treef117ce4f0292d42ace65c33e32eb1eba4aa0e7c2
parentcd3922c8a98e6e21ed988b23f2704090d324381e (diff)
and mrk server works now... again
-rw-r--r--mrk.c3
-rw-r--r--mrklib_serv.c8
2 files changed, 8 insertions, 3 deletions
diff --git a/mrk.c b/mrk.c
index 1788177..204330e 100644
--- a/mrk.c
+++ b/mrk.c
@@ -302,9 +302,8 @@ main(int argc, char **argv)
302 } 302 }
303 else if (!strcmp(argv[1], "get")) 303 else if (!strcmp(argv[1], "get"))
304 { 304 {
305 install_bin = EINA_TRUE;
306 if (argc < 2) _mrk_err("Must provide PKGNAME as argument\n"); 305 if (argc < 2) _mrk_err("Must provide PKGNAME as argument\n");
307 move_to_cwd = EINA_TRUE; 306 install_bin = EINA_TRUE;
308 mrk_download(server, argv[2]); 307 mrk_download(server, argv[2]);
309 } 308 }
310 else if (!strcmp(argv[1], "rel")) 309 else if (!strcmp(argv[1], "rel"))
diff --git a/mrklib_serv.c b/mrklib_serv.c
index 08db755..99c62ae 100644
--- a/mrklib_serv.c
+++ b/mrklib_serv.c
@@ -368,7 +368,13 @@ _mrk_cb_exe_del(void *data, int type, void *event)
368 if (!c) return EINA_TRUE; 368 if (!c) return EINA_TRUE;
369 if (c->exe != e->exe) return EINA_TRUE; 369 if (c->exe != e->exe) return EINA_TRUE;
370 c->exe = NULL; 370 c->exe = NULL;
371 mrk_repodb_update(server->rdb); 371 if (e->exit_code == 0)
372 {
373 ecore_ipc_client_send(c->client, M_OP, M_UP_OK, 0, 0, 0, NULL, 0);
374 mrk_repodb_update(server->rdb);
375 }
376 else
377 ecore_ipc_client_send(c->client, M_OP, M_UP_FAIL, 0, 0, 0, NULL, 0);
372 return EINA_FALSE; 378 return EINA_FALSE;
373 } 379 }
374 return EINA_TRUE; 380 return EINA_TRUE;