mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 11:10: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 <QXmlSimpleReader>
|
||||||
#include <QCryptographicHash>
|
#include <QCryptographicHash>
|
||||||
#include <QDesktopWidget>
|
#include <QDesktopWidget>
|
||||||
|
|
||||||
#include "SleepLib/preferences.h"
|
#include "SleepLib/preferences.h"
|
||||||
#include "quazip/quazip.h"
|
#include "quazip/quazip.h"
|
||||||
#include "quazip/quazipfile.h"
|
#include "quazip/quazipfile.h"
|
||||||
@ -372,7 +373,7 @@ void UpdaterWindow::replyFinished(QNetworkReply * reply)
|
|||||||
} while (!line.isNull());
|
} while (!line.isNull());
|
||||||
} else {
|
} else {
|
||||||
QString fn=files.at(i).section("/",-1);
|
QString fn=files.at(i).section("/",-1);
|
||||||
QFile::Permissions perm=orig.permissions(apppath+fn);
|
QFile::Permissions perm=QFile::permissions(apppath+fn);
|
||||||
|
|
||||||
// delete backups
|
// delete backups
|
||||||
if (f.exists(backups+fn)) f.remove(backups+fn);
|
if (f.exists(backups+fn)) f.remove(backups+fn);
|
||||||
|
Loading…
Reference in New Issue
Block a user