X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/f6b68b2c49618bf8df27e993bc3df42e913180db..e67b009f8f8c7b64e3489eedf40b75056fc45a08:/Sources.mm diff --git a/Sources.mm b/Sources.mm index 4cc2f9e9..790dd1bf 100644 --- a/Sources.mm +++ b/Sources.mm @@ -28,9 +28,9 @@ #include "Sources.h" extern _H Sources_; -extern bool Changed_; void CydiaWriteSources() { + unlink(SOURCES_LIST); FILE *file(fopen(SOURCES_LIST, "w")); _assert(file != NULL); @@ -55,7 +55,6 @@ void CydiaWriteSources() { void CydiaAddSource(NSDictionary *source) { [Sources_ setObject:source forKey:[NSString stringWithFormat:@"%@:%@:%@", [source objectForKey:@"Type"], [source objectForKey:@"URI"], [source objectForKey:@"Distribution"]]]; - Changed_ = true; } void CydiaAddSource(NSString *href, NSString *distribution, NSArray *sections) {