libopkg: fix --force-checksum to cover sha256sum cases as well
[project/opkg-lede.git] / libopkg / pkg_extract.c
index c4d74a320f73cd68dec5a8d968ab7431cc9a2041..0f21e4011d418b32a0ab285202a7db4631032e6f 100644 (file)
    General Public License for more details.
 */
 
-#include "includes.h"
-#include <errno.h>
+#include <stdio.h>
 
 #include "pkg_extract.h"
-
 #include "libbb/libbb.h"
 #include "file_util.h"
 #include "sprintf_alloc.h"
 
-/* assuage libb functions */
-const char *applet_name = "opkg";
-
 int
 pkg_extract_control_file_to_stream(pkg_t *pkg, FILE *stream)
 {
@@ -34,8 +29,7 @@ pkg_extract_control_file_to_stream(pkg_t *pkg, FILE *stream)
        deb_extract(pkg->local_filename, stream,
                        extract_control_tar_gz
                        | extract_to_stream,
-                       NULL, "./control", &err);
-
+                       NULL, "control", &err);
        return err;
 }