SF.net SVN: morphix: [2364] trunk/mmaker/libmorphix/makemodule.c

[email protected] Thu, 20 Jul 2006 04:57:43 -0700
Newsgroups gmane.linux.morphix.cvs
Message-ID <[email protected]>
Revision: 2364
Author:   alextreme
Date:     2006-07-20 04:57:40 -0700 (Thu, 20 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/morphix/?rev=2364&view=rev

Log Message:
-----------
  * minor build fix, note that code is still untested!

Modified Paths:
--------------
    trunk/mmaker/libmorphix/makemodule.c
Modified: trunk/mmaker/libmorphix/makemodule.c
===================================================================
--- trunk/mmaker/libmorphix/makemodule.c	2006-07-20 11:51:36 UTC (rev 2363)
+++ trunk/mmaker/libmorphix/makemodule.c	2006-07-20 11:57:40 UTC (rev 2364)
@@ -1231,7 +1231,7 @@
 	    simply isn't enough...
 	*/
 
-	cmdline = g_strdup_printf("%s %s sh -c \"COLUMNS=160 dpkg -l | gzip > /morphix/packages.gz\"",P_CHROOT,dirname);
+	cmdline = g_strdup_printf("%s %s sh -c \"COLUMNS=160 dpkg -l\"",P_CHROOT,module->dirname);
 	stdinput = ExecuteCommandReturnStdin(cmdline);
 	g_free(cmdline);
 	buf_array = g_strsplit(stdinput,"\n",0);
@@ -1251,6 +1251,8 @@
 		count++;
 	}
 
+	// free buf_array, stdinput?
+
 	cmdline = g_strdup_printf("tar zcvf %s %s/sources", sources_location, module->dirname);
 	ExecuteCommand(cmdline);
 	g_free(cmdline);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV