- (PackageCell *) init {
CGRect frame(CGRectMake(0, 0, 320, 74));
if ((self = [super initWithFrame:frame reuseIdentifier:@"Package"]) != nil) {
- UIView *content([self contentView]);
- CGRect bounds([content bounds]);
-
- self.content = [[[CyteTableViewCellContentView alloc] initWithFrame:bounds] autorelease];
- [self.content setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
- [content addSubview:self.content];
-
- [self.content setDelegate:self];
[self.content setOpaque:YES];
} return self;
}
switch_ = [[[UISwitch alloc] initWithFrame:CGRectMake(218, 9, 60, 25)] autorelease];
[switch_ addTarget:self action:@selector(onSwitch:) forEvents:UIControlEventValueChanged];
- UIView *content([self contentView]);
- CGRect bounds([content bounds]);
-
- self.content = [[[CyteTableViewCellContentView alloc] initWithFrame:bounds] autorelease];
- [self.content setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
- [content addSubview:self.content];
[self.content setBackgroundColor:[UIColor whiteColor]];
-
- [self.content setDelegate:self];
} return self;
}
- (SourceCell *) initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier {
if ((self = [super initWithFrame:frame reuseIdentifier:reuseIdentifier]) != nil) {
- UIView *content([self contentView]);
- CGRect bounds([content bounds]);
-
- self.content = [[[CyteTableViewCellContentView alloc] initWithFrame:bounds] autorelease];
- [self.content setAutoresizingMask:UIViewAutoresizingFlexibleBoth];
[self.content setBackgroundColor:[UIColor whiteColor]];
- [content addSubview:self.content];
-
- [self.content setDelegate:self];
[self.content setOpaque:YES];
indicator_ = [[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGraySmall] autorelease];
[indicator_ setAutoresizingMask:UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin];// | UIViewAutoresizingFlexibleBottomMargin];
- [content addSubview:indicator_];
+ [[self contentView] addSubview:indicator_];
[[self.content layer] setContentsGravity:kCAGravityTopLeft];
} return self;
return [(NSMutableDictionary *) copy autorelease];
}
+int main_copy();
+int main_file();
+int main_gpgv();
+int main_rred(int, char *argv[]);
+
+int main_gzip(int, char *argv[]);
+
int main_store(int, char *argv[]);
+int main_http();
+
int main(int argc, char *argv[]) {
-#ifdef __arm64__
const char *argv0(argv[0]);
if (const char *slash = strrchr(argv0, '/'))
argv0 = slash + 1;
if (false);
+ else if (!strcmp(argv0, "copy"))
+ return main_copy();
+ else if (!strcmp(argv0, "file"))
+ return main_file();
+ else if (!strcmp(argv0, "gpgv"))
+ return main_gpgv();
+ else if (!strcmp(argv0, "rred"))
+ return main_rred(argc, argv);
+#ifdef __arm__
+ else if (!strcmp(argv0, "bzip2"))
+ return main_gzip(argc, argv);
+ else if (!strcmp(argv0, "gzip"))
+ return main_gzip(argc, argv);
+ else if (!strcmp(argv0, "lzma"))
+ return main_gzip(argc, argv);
+#endif
+#ifdef __arm64__
else if (!strcmp(argv0, "store"))
return main_store(argc, argv);
#endif
+ else if (!strcmp(argv0, "http"))
+ return main_http();
+ else if (!strcmp(argv0, "https"))
+ return main_http();
+ else {}
int fd(open("/tmp/cydia.log", O_WRONLY | O_APPEND | O_CREAT, 0644));
dup2(fd, 2);
_trace();
- CyteInitialize(@"Cydia", Cydia_);
+ CyteInitialize([NSString stringWithFormat:@"Cydia/%@", Cydia_]);
UpdateExternalStatus(0);
SessionData_ = [NSMutableDictionary dictionaryWithCapacity:4];
_config->Set("Acquire::AllowInsecureRepositories", true);
_config->Set("Acquire::Check-Valid-Until", false);
- _config->Set("Dir::Bin::Methods::store", "/Applications/Cydia.app/store");
+
+ _config->Set("Dir::Bin::Methods", "/Applications/Cydia.app");
_config->Set("pkgCacheGen::ForceEssential", "");