]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/BrowserView.m
Added a dependency on apt7-key to test control.
[cydia.git] / UICaboodle / BrowserView.m
index 10cc19376a28f83930195cf501ccc7670e7aa06e..cb3709c23f4a2837847d6a32eb7385f3b3d3b56a 100644 (file)
         _assert(dup2(fds[1], 1) != -1);
         _assert(close(fds[0]) != -1);
         _assert(close(fds[1]) != -1);
-        execlp("du", "du", "-s", [path UTF8String], NULL);
+        /* XXX: this should probably not use du */
+        execl("/usr/libexec/cydia/du", "du", "-s", [path UTF8String], NULL);
         exit(1);
         _assert(false);
     }
 
         if ([scroller_ respondsToSelector:@selector(setZoomScale:duration:)])
             [scroller_ setZoomScale:1 duration:0];
-        else
-            [scroller_ setZoomScale:1 animated:NO];
+        else if ([scroller_ respondsToSelector:@selector(_setZoomScale:duration:)])
+            [scroller_ _setZoomScale:1 duration:0];
+        /*else if ([scroller_ respondsToSelector:@selector(setZoomScale:animated:)])
+            [scroller_ setZoomScale:1 animated:NO];*/
 
         CGRect webrect = [scroller_ bounds];
         webrect.size.height = 0;