projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Provide a more useful comment.
[oweals/opkg-lede.git]
/
libopkg
/
pkg_extract.c
diff --git
a/libopkg/pkg_extract.c
b/libopkg/pkg_extract.c
index e1b4018bfa400a30488e23b679a46260af65a6b0..d9fbdd5f6d7b69479483885e307b192a2549596d 100644
(file)
--- a/
libopkg/pkg_extract.c
+++ b/
libopkg/pkg_extract.c
@@
-29,20
+29,10
@@
const char *applet_name = "opkg";
int pkg_extract_control_file_to_stream(pkg_t *pkg, FILE *stream)
{
int pkg_extract_control_file_to_stream(pkg_t *pkg, FILE *stream)
{
-
char *buffer = deb_extract(pkg->local_filename, stderr
,
+
deb_extract(pkg->local_filename, stream
,
extract_control_tar_gz
extract_control_tar_gz
- | extract_
one_to_buffer,
+ | extract_
to_stdout, /* to stream actually */
NULL, "./control");
NULL, "./control");
- if (buffer == NULL) {
- return EINVAL;
- }
-
- if (fputs(buffer, stream) == EOF) {
- free(buffer);
- return EINVAL;
- }
-
- free(buffer);
return 0;
}
return 0;
}