@@ -246,6 +246,9 @@ void Config::setupUserConfig() {
246246
247247 QString localEtcPath = QString (SYSCONFDIR " /skyscraper/" );
248248 if (!QFileInfo::exists (localEtcPath) || isRpInstall) {
249+ if (!isRpInstall) {
250+ qDebug () << " local install path does not exist" << localEtcPath;
251+ }
249252 // RetroPie or Windows installation type: handled externally
250253 return ;
251254 }
@@ -269,21 +272,20 @@ void Config::setupUserConfig() {
269272 dest = dest.replace (" resources/" , " " );
270273 } else if ((src == " peas.json" || src == " platforms_idmap.csv" )) {
271274 isPristine = isPlatformCfgPristine (tgtDir % " /" % dest);
272- // isPristine == 1: keep new file in *.dist
275+ // isPristine == 1: keep updated files from release in *.dist
273276 if (isPristine == 0 ) {
274277 configFiles[src].second = FileOp::OVERWRITE;
275278 } else if (isPristine < 0 ) {
276- ncprintf (
277- " \033 [1;31mFile '%s' does not exist or cannot be read. "
278- " Please fix. Quitting.\033 [0m\n " ,
279- (tgtDir % " /" % dest).toUtf8 ().constData ());
279+ ncprintf (" \033 [1;31mFile '%s' cannot be read. "
280+ " Please fix. Quitting.\033 [0m\n " ,
281+ (tgtDir % " /" % dest).toUtf8 ().constData ());
280282 emit die (1 ,
281283 QString (" cannot access '%1'" ).arg (tgtDir % " /" % dest),
282- " File does not exist or permission denied" );
284+ " Permission denied" );
283285 }
284286 }
285287 QString tgt = tgtDir % " /" % dest;
286- copyFile (localEtcPath % src, tgt, isPristine,
288+ copyFile (localEtcPath % src, tgt, isPristine == 0 ,
287289 configFiles.value (src).second );
288290 }
289291}
0 commit comments