Revision 645f9fc5 F-Droid/src/org/fdroid/fdroid/localrepo/LocalRepoManager.java

View differences:

F-Droid/src/org/fdroid/fdroid/localrepo/LocalRepoManager.java
140 140
            SanitizedFile apkFile = SanitizedFile.knownSanitized(appInfo.publicSourceDir);
141 141
            SanitizedFile fdroidApkLink = new SanitizedFile(webRoot, "fdroid.client.apk");
142 142
            attemptToDelete(fdroidApkLink);
143
            if (Utils.symlinkOrCopyFile(apkFile, fdroidApkLink))
143
            if (Utils.symlinkOrCopyFileQuietly(apkFile, fdroidApkLink))
144 144
                fdroidClientURL = "/" + fdroidApkLink.getName();
145 145
        } catch (PackageManager.NameNotFoundException e) {
146 146
            Log.e(TAG, "Could not set up F-Droid apk in the webroot", e);
......
220 220
    private void symlinkFileElsewhere(String fileName, String symlinkPrefix, File directory) {
221 221
        SanitizedFile index = new SanitizedFile(directory, fileName);
222 222
        attemptToDelete(index);
223
        Utils.symlinkOrCopyFile(new SanitizedFile(new File(directory, symlinkPrefix), fileName), index);
223
        Utils.symlinkOrCopyFileQuietly(new SanitizedFile(new File(directory, symlinkPrefix), fileName), index);
224 224
    }
225 225

  
226 226
    private void deleteContents(File path) {
......
249 249

  
250 250
            if (app.installedApk != null) {
251 251
                SanitizedFile outFile = new SanitizedFile(repoDir, app.installedApk.apkName);
252
                if (Utils.symlinkOrCopyFile(app.installedApk.installedFile, outFile))
252
                if (Utils.symlinkOrCopyFileQuietly(app.installedApk.installedFile, outFile))
253 253
                    continue;
254 254
            }
255 255
            // if we got here, something went wrong

Also available in: Unified diff