projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a function for recursive directory removal and use that instead of xsystem.
[oweals/opkg-lede.git]
/
libopkg
/
opkg_conf.c
diff --git
a/libopkg/opkg_conf.c
b/libopkg/opkg_conf.c
index 425c72bd9e6832d34d69bcf1f665cd2947044e06..bd73317a4f145dac1578efd0eb1b4c58581cf1d2 100644
(file)
--- a/
libopkg/opkg_conf.c
+++ b/
libopkg/opkg_conf.c
@@
-341,12
+341,7
@@
int opkg_conf_init(opkg_conf_t *conf, const args_t *args)
void opkg_conf_deinit(opkg_conf_t *conf)
{
- int err;
- char *cmd;
-
- sprintf_alloc(&cmd, "rm -fr %s\n", conf->tmp_dir);
- err = xsystem(cmd);
- free(cmd);
+ rm_r(conf->tmp_dir);
free(conf->tmp_dir);
free(conf->lists_dir);