Compare commits
No commits in common. "8e0732cf95204483a40629a39847a0a274c35460" and "0d00faf493047c773864055bbd11b402b74f9f59" have entirely different histories.
8e0732cf95
...
0d00faf493
@ -139,8 +139,7 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
||||
# customer repositories.
|
||||
# Fix: allow empty lines in opkg_commands.
|
||||
# 1.5.1 : Fix: do not use cleanPath() on a url-address.
|
||||
# 1.5.2 : Remove .ipk and .gz files in /var/cache/opkg.
|
||||
VERSION="1.5.2"
|
||||
VERSION="1.5.1"
|
||||
# PLANNED TODOS:
|
||||
# 1: Das Repository wird repariert bwz. neu geklont. Unabhaengig vom WAIT.
|
||||
# 2: Wenn der WAIT-Button aktiv ist, dann wird ein Repository repariert (neu
|
||||
|
@ -864,24 +864,7 @@ bool Worker::computeFilesToDownload() {
|
||||
return (m_filesToDownload.size() > 0);
|
||||
}
|
||||
|
||||
|
||||
bool Worker::cleanUpOpkgCache() {
|
||||
bool removedFiles = true;
|
||||
QDir dir("/var/cache/opkg");
|
||||
if (dir.exists()) {
|
||||
dir.setNameFilters(QStringList() << ".gz" << ".ipk");
|
||||
dir.setFilter(QDir::Files);
|
||||
foreach(QString dirFile, dir.entryList()) {
|
||||
removedFiles &= dir.remove(dirFile);
|
||||
}
|
||||
}
|
||||
return removedFiles;
|
||||
}
|
||||
|
||||
bool Worker::execOpkgCommands() {
|
||||
if (!cleanUpOpkgCache()) {
|
||||
CONSOLE() << "INFO: some cached opkg files not removed";
|
||||
}
|
||||
for (int i = 0; i < m_filesToUpdate.size(); ++i) {
|
||||
QString const fName = m_filesToUpdate.at(i);
|
||||
if (fName.contains("opkg_commands", Qt::CaseInsensitive)) {
|
||||
|
@ -193,7 +193,6 @@ class Worker : public QThread{
|
||||
QString m_apismVersion;
|
||||
|
||||
bool executeOpkgCommand(QString opkgCommand);
|
||||
bool cleanUpOpkgCache();
|
||||
QString getOsVersion() const;
|
||||
QString getATBQTVersion() const;
|
||||
QString getATBUpdateToolVersion() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user