Description: Fix snapshot restore function Origin: upstream, http://anonscm.debian.org/gitweb/?p=mirrorer/reprepro.git;a=commitdiff;h=38bdd869f617e8872e3194501bd79e3ecc94e425 --- reprepro-4.8.2.orig/copypackages.c +++ reprepro-4.8.2/copypackages.c @@ -970,7 +970,7 @@ static retvalue restore_from_snapshot(st break; } free(basedir); - if (!RET_IS_OK(result)) + if (RET_WAS_ERROR(result)) return result; r = packagelist_add(into, &list, snapshotname); packagelist_done(&list);