opkg: the current version leaves empty temp directories behind, clean them up before exit

SVN-Revision: 18872
master
Jo-Philipp Wich 15 years ago
parent 95e0fd88c3
commit 908bdfd435
  1. 12
      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:
Loading…
Cancel
Save