diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-12-21 03:28:11 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-12-21 03:28:11 +0000 |
commit | 115fa2f5659cc42f67d7f841f5e5f1ab0247d677 (patch) | |
tree | 2f6b531ad4ae4124426b26006e422b9fcb99eae2 /package/opkg/patches/012-cleanup-tmpdir.patch | |
parent | 342c869ddb5f71183fc557bc6f5dfb53966bd4c1 (diff) | |
download | master-187ad058-115fa2f5659cc42f67d7f841f5e5f1ab0247d677.tar.gz master-187ad058-115fa2f5659cc42f67d7f841f5e5f1ab0247d677.tar.bz2 master-187ad058-115fa2f5659cc42f67d7f841f5e5f1ab0247d677.zip |
[package] opkg: the current version leaves empty temp directories behind, clean them up before exit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18872 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/opkg/patches/012-cleanup-tmpdir.patch')
-rw-r--r-- | package/opkg/patches/012-cleanup-tmpdir.patch | 12 |
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 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: |