mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +00:00
Preserve file exec permissions for Mac update #2
This commit is contained in:
parent
6f147b2e03
commit
3fd595e58f
@ -11,6 +11,7 @@
|
||||
#include <QXmlSimpleReader>
|
||||
#include <QCryptographicHash>
|
||||
#include <QDesktopWidget>
|
||||
|
||||
#include "SleepLib/preferences.h"
|
||||
#include "quazip/quazip.h"
|
||||
#include "quazip/quazipfile.h"
|
||||
@ -372,7 +373,7 @@ void UpdaterWindow::replyFinished(QNetworkReply * reply)
|
||||
} while (!line.isNull());
|
||||
} else {
|
||||
QString fn=files.at(i).section("/",-1);
|
||||
QFile::Permissions perm=orig.permissions(apppath+fn);
|
||||
QFile::Permissions perm=QFile::permissions(apppath+fn);
|
||||
|
||||
// delete backups
|
||||
if (f.exists(backups+fn)) f.remove(backups+fn);
|
||||
|
Loading…
Reference in New Issue
Block a user