Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fw32.git;a=commitdiff;h=9661cd2b5142f298fef9042343a81ae7ee0e1f21

commit 9661cd2b5142f298fef9042343a81ae7ee0e1f21
Author: James Buren <r...@frugalware.org>
Date:   Thu Nov 3 03:55:55 2011 -0500

fw32.c: add fw32_remove function

diff --git a/fw32.c b/fw32.c
index 91f434b..c87590e 100644
--- a/fw32.c
+++ b/fw32.c
@@ -341,6 +341,18 @@ fw32_install(char **args1)
}

static void
+fw32_remove(char **args1)
+{
+  char *args2[] =
+  {
+    "-Rsc",
+    0
+  };
+
+  pacman_g2(args_merge(0,args2,args1));
+}
+
+static void
fw32_mount_all(void)
{
mount_all();
@@ -376,6 +388,8 @@ main(int argc,char **argv)
fw32_create();
else if(!strcmp(cmd,"fw32-install"))
fw32_install(args);
+  else if(!strcmp(cmd,"fw32-remove"))
+    fw32_remove(args);
else if(!strcmp(cmd,"fw32-clean"))
fw32_clean();
else if(!strcmp(cmd,"fw32-mount-all"))
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to