瀏覽代碼

hopefully will generate list files properly now

Kevin Bradley 1 年之前
父節點
當前提交
279e789ec3
共有 1 個文件被更改,包括 5 次插入0 次删除
  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;
 }