3 Commits

3 changed files with 8 additions and 3 deletions

View File

@ -68,7 +68,7 @@ Please see [USAGE.md](USAGE.md) for the user manual. There is also [HACKING.md](
## Build ## Build
### Ubuntu 21.10/22.04 ### Debian/Ubuntu
To build on Ubuntu and Debian, clone the repo and then run: To build on Ubuntu and Debian, clone the repo and then run:
``` ```
@ -95,7 +95,7 @@ The GUI is located in `gui/looqs-gui`, the binary for the CLI is in `cli/looqs`
## Packages ## Packages
At this point, looqs is not in any official distro package repo, but I maintain some packages. At this point, looqs is not in any official distro package repo, but I maintain some packages.
### Ubuntu 21.10/22.04 ### Ubuntu 22.04
Latest release can be installed using apt from the repo. Latest release can be installed using apt from the repo.
``` ```
# First, obtain key, assume it's trusted. # First, obtain key, assume it's trusted.

View File

@ -120,7 +120,7 @@ void Indexer::dirScanProgress(int current, int total)
void Indexer::processFileScanResult(FileScanResult result) void Indexer::processFileScanResult(FileScanResult result)
{ {
if(result.second != OK || result.second != OK_WASEMPTY || result.second != SKIPPED) if(isErrorSaveFileResult(result.second))
{ {
this->currentIndexResult.results.append(result); this->currentIndexResult.results.append(result);
if(!keepGoing) if(!keepGoing)

View File

@ -30,4 +30,9 @@ static inline QString SaveFileResultToString(SaveFileResult sfr)
return SaveFileResultStr[(int)sfr]; return SaveFileResultStr[(int)sfr];
} }
static inline bool isErrorSaveFileResult(SaveFileResult result)
{
return result == DBFAIL || result == PROCESSFAIL || result == NOTFOUND || result == NOACCESS;
}
#endif // SAVEFILERESULT_H #endif // SAVEFILERESULT_H