Pārlūkot izejas kodu

hopefully will generate list files properly now

Kevin Bradley 1 gadu atpakaļ
vecāks
revīzija
279e789ec3
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      bootstrapTool/Classes/InputPackage.m

+ 5 - 0
bootstrapTool/Classes/InputPackage.m

@@ -71,6 +71,11 @@
     if (!validated) {
         fileList = [HelperClass returnForProcess:[NSString stringWithFormat:@"/usr/local/bin/dpkg-deb -c %@ | awk '{ print $6 }' | cut -c 2-" , self.path]];
     }
+    if ([fileList containsObject:@"/"]) {
+        NSMutableArray *_mutableList = [fileList mutableCopy];
+        [_mutableList removeObject:@"/"];
+        fileList = [_mutableList copy];
+    }
     return fileList;
 }