diff options
-rw-r--r-- | MobileCydia.mm | 19 | ||||
-rw-r--r-- | makefile | 2 |
2 files changed, 12 insertions, 9 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 2a76717..c072c26 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3036,6 +3036,15 @@ static NSString *Elision_; static NSString *Error_; static NSString *Warning_; +class CydiaLogCleaner : + public pkgArchiveCleaner +{ + protected: + virtual void Erase(const char *File, std::string Pkg, std::string Ver, struct stat &St) { + unlink(File); + } +}; + /* Database Implementation {{{ */ @implementation Database @@ -3498,15 +3507,7 @@ static NSString *Warning_; pkgAcquire fetcher; fetcher.Clean(_config->FindDir("Dir::Cache::Archives")); - class LogCleaner : - public pkgArchiveCleaner - { - protected: - virtual void Erase(const char *File, std::string Pkg, std::string Ver, struct stat &St) { - unlink(File); - } - } cleaner; - + CydiaLogCleaner cleaner; if ([self popErrorWithTitle:title forOperation:cleaner.Go(_config->FindDir("Dir::Cache::Archives") + "partial/", cache_)]) return false; @@ -27,9 +27,11 @@ flags += -fmessage-length=0 flags += -g0 -O2 flags += -fobjc-exceptions flags += -fno-guess-branch-probability +flags += -fvisibility=hidden xflags := xflags += -fobjc-call-cxx-cdtors +xflags += -fvisibility-inlines-hidden link += -framework CoreFoundation link += -framework CoreGraphics |