forked from lix-project/lix
Cleanup
This commit is contained in:
parent
ae72be1b8b
commit
5ee8944155
|
@ -233,7 +233,7 @@ sub getCacheId {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sub cachedGetInfoFrom {
|
sub getCachedInfoFrom {
|
||||||
my ($storePath, $binaryCacheUrl) = @_;
|
my ($storePath, $binaryCacheUrl) = @_;
|
||||||
|
|
||||||
$queryNAR->execute(getCacheId($binaryCacheUrl), basename($storePath));
|
$queryNAR->execute(getCacheId($binaryCacheUrl), basename($storePath));
|
||||||
|
@ -279,7 +279,7 @@ sub printInfoParallel {
|
||||||
foreach my $storePath (@paths) {
|
foreach my $storePath (@paths) {
|
||||||
my $found = 0;
|
my $found = 0;
|
||||||
foreach my $binaryCacheUrl (@binaryCacheUrls) {
|
foreach my $binaryCacheUrl (@binaryCacheUrls) {
|
||||||
my $info = cachedGetInfoFrom($storePath, $binaryCacheUrl);
|
my $info = getCachedInfoFrom($storePath, $binaryCacheUrl);
|
||||||
if (defined $info) {
|
if (defined $info) {
|
||||||
printInfo($storePath, $info);
|
printInfo($storePath, $info);
|
||||||
$found = 1;
|
$found = 1;
|
||||||
|
@ -323,7 +323,7 @@ sub downloadBinary {
|
||||||
my ($storePath) = @_;
|
my ($storePath) = @_;
|
||||||
|
|
||||||
foreach my $binaryCacheUrl (@binaryCacheUrls) {
|
foreach my $binaryCacheUrl (@binaryCacheUrls) {
|
||||||
my $info = cachedGetInfoFrom($storePath, $binaryCacheUrl);
|
my $info = getCachedInfoFrom($storePath, $binaryCacheUrl);
|
||||||
|
|
||||||
unless (defined $info) {
|
unless (defined $info) {
|
||||||
next if negativeHit($storePath, $binaryCacheUrl);
|
next if negativeHit($storePath, $binaryCacheUrl);
|
||||||
|
|
Loading…
Reference in a new issue