Remove debugging statement.
[oweals/busybox.git] / dpkg.c
diff --git a/dpkg.c b/dpkg.c
index 4224672ec2a18051b6ccb2c118c5264779b894db..020a68a903e203ff0e2d295bf3d35db5bbb8391b 100644 (file)
--- a/dpkg.c
+++ b/dpkg.c
@@ -1,3 +1,4 @@
+#include <ctype.h>
 #include <dirent.h>
 #include <getopt.h>
 #include <stdio.h>
@@ -116,7 +117,6 @@ static int package_compare(const void *p1, const void *p2)
 }
 
 #ifdef DODEPENDS
-#include <ctype.h>
 
 static char **depends_split(const char *dependsstr)
 {
@@ -662,12 +662,12 @@ static int dpkg_dounpack(package_t *pkg)
        /* extract the control files */
        info_prefix = (char *) malloc(strlen(pkg->package) + strlen(infodir) + 2 + 5 + 1);
        sprintf(info_prefix, "%s/%s.", infodir, pkg->package);
-       deb_extract(pkg->package, stdout, (extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL);
+       deb_extract(pkg->filename, stdout, (extract_control_tar_gz | extract_all_to_fs), info_prefix, NULL);
 
        /* Create the list file */
        strcat(info_prefix, "list");
        out_stream = wfopen(info_prefix, "w");                  
-       deb_extract(pkg->package, out_stream, (extract_data_tar_gz | extract_list), NULL, NULL);
+       deb_extract(pkg->filename, out_stream, (extract_data_tar_gz | extract_list), NULL, NULL);
        fclose(out_stream);
 
        pkg->state_want = state_want_install;
@@ -837,7 +837,7 @@ extern int dpkg_main(int argc, char **argv)
                optind++;
        }
 
-       create_path(infodir, S_IRWXU);
+       make_directory((char *)infodir, S_IRWXU, FILEUTILS_RECUR);
 
        status = status_read();