From: Jo-Philipp Wich Date: Mon, 21 Dec 2009 03:28:11 +0000 (+0000) Subject: opkg: the current version leaves empty temp directories behind, clean them up before... X-Git-Tag: reboot~21612 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=908bdfd435aa270efdee53e237b8841d9ab814f5;p=oweals%2Fopenwrt.git opkg: the current version leaves empty temp directories behind, clean them up before exit SVN-Revision: 18872 --- diff --git a/package/opkg/patches/012-cleanup-tmpdir.patch b/package/opkg/patches/012-cleanup-tmpdir.patch new file mode 100644 index 0000000000..f6d5e8732d --- /dev/null +++ b/package/opkg/patches/012-cleanup-tmpdir.patch @@ -0,0 +1,12 @@ +--- a/src/opkg-cl.c ++++ b/src/opkg-cl.c +@@ -333,6 +333,9 @@ + print_error_list(); + free_error_list(); + ++ if( conf->tmp_dir ) ++ rm_r(conf->tmp_dir); ++ + return 0; + + err2: