|
@@ -84,7 +84,7 @@
|
|
|
return lines;
|
|
|
}
|
|
|
|
|
|
-+ (PackageFile *)packageFileFromLine:(NSString *)inputLine {
|
|
|
++ (StatusPackageFile *)packageFileFromLine:(NSString *)inputLine {
|
|
|
// "-rwxr-xr-x 0 root wheel 69424 Oct 22 03:56 ./Library/MobileSubstrate/DynamicLibraries/beigelist7.dylib\n",
|
|
|
|
|
|
//-rwxr-xr-x root/staff 10860 2011-02-02 03:55 ./Library/Frameworks/CydiaSubstrate.framework/Commands/cycc
|
|
@@ -130,7 +130,7 @@
|
|
|
//NSString *fullPath = [NSString stringWithFormat:@"/%@", path];
|
|
|
NSString *fullPath = [path substringFromIndex:1];
|
|
|
|
|
|
- PackageFile *pf = [PackageFile new];
|
|
|
+ StatusPackageFile *pf = [StatusPackageFile new];
|
|
|
[pf _setFileTypeFromRaw:fileTypeChar];
|
|
|
|
|
|
switch (pf.type) {
|
|
@@ -247,17 +247,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
-+ (Package *)packageForDeb:(NSString *)debFile {
|
|
|
++ (StatusPackage *)packageForDeb:(NSString *)debFile {
|
|
|
|
|
|
NSString *packageName = [[self returnForProcess:[NSString stringWithFormat:@"/usr/local/bin/dpkg -f %@ Package", debFile]] componentsJoinedByString:@"\n"];
|
|
|
NSString *packageVersion = [[self returnForProcess:[NSString stringWithFormat:@"/usr/local/bin/dpkg -f %@ Version", debFile]] componentsJoinedByString:@"\n"];
|
|
|
- NSArray <PackageFile *> *fileList = [self returnForProcess:[NSString stringWithFormat:@"/usr/local/bin/dpkg -c %@", debFile]];
|
|
|
+ NSArray <StatusPackageFile *> *fileList = [self returnForProcess:[NSString stringWithFormat:@"/usr/local/bin/dpkg -c %@", debFile]];
|
|
|
|
|
|
__block NSMutableArray *finalArray = [NSMutableArray new];
|
|
|
|
|
|
[fileList enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
|
|
|
|
|
- PackageFile *file = [self packageFileFromLine:obj];
|
|
|
+ StatusPackageFile *file = [self packageFileFromLine:obj];
|
|
|
if (file) {
|
|
|
//DLog(@"%@", file);
|
|
|
[finalArray addObject:file];
|
|
@@ -265,7 +265,7 @@
|
|
|
|
|
|
}];
|
|
|
|
|
|
- Package *pkg = [Package new];
|
|
|
+ StatusPackage *pkg = [StatusPackage new];
|
|
|
pkg.files = finalArray;
|
|
|
pkg.packageName = packageName;
|
|
|
pkg.version = packageVersion;
|