[package] opkg: the current version leaves empty temp directories behind, clean them...
[openwrt.git] / package / opkg / patches / 012-cleanup-tmpdir.patch
1 --- a/src/opkg-cl.c
2 +++ b/src/opkg-cl.c
3 @@ -333,6 +333,9 @@
4         print_error_list();
5         free_error_list();
6  
7 +       if( conf->tmp_dir )
8 +               rm_r(conf->tmp_dir);
9 +
10         return 0;
11  
12  err2: