summaryrefslogtreecommitdiff
path: root/package/opkg
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-12-21 03:28:11 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-12-21 03:28:11 +0000
commit908bdfd435aa270efdee53e237b8841d9ab814f5 (patch)
tree8dc0eed197733b96b7d0104eae36b1f54ed2c83c /package/opkg
parent95e0fd88c30f0ab3e880ee83ee6a3ded8b4f1805 (diff)
downloadmtk-20170518-908bdfd435aa270efdee53e237b8841d9ab814f5.zip
mtk-20170518-908bdfd435aa270efdee53e237b8841d9ab814f5.tar.gz
mtk-20170518-908bdfd435aa270efdee53e237b8841d9ab814f5.tar.bz2
opkg: the current version leaves empty temp directories behind, clean them up before exit
SVN-Revision: 18872
Diffstat (limited to 'package/opkg')
-rw-r--r--package/opkg/patches/012-cleanup-tmpdir.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/opkg/patches/012-cleanup-tmpdir.patch b/package/opkg/patches/012-cleanup-tmpdir.patch
new file mode 100644
index 0000000..f6d5e87
--- /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: