Skip to content

Commit

Permalink
Package Rebuild: simplify existance check
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mnich authored Dec 22, 2024
1 parent ce40b71 commit c76470f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/Update-AllPackageManifests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ function Update-WingetPackage {
$manifest = $manifestDict[$version]
# Extract the installer links from the manifest
$installerLinks = Export-InstallerLinks -Manifest $manifest
$prExists = Test-ExistingPRs -PackageIdentifier $PackageIdentifier -Version $version -OnlyOpen
if(!$prExists || $Submit -eq $false) {
# only perform rebuild if it will not be submitted or if no PR exists
if($Submit -eq $false ? $true : !(Test-ExistingPRs -PackageIdentifier $PackageIdentifier -Version $version -OnlyOpen)) {
.\komac.exe update $PackageIdentifier --version $version --urls $installerLinks -o $OutputDir -t $Token ($Submit -eq $true ? '-s' : '--dry-run') ($resolves -match '^\d+$' ? "--resolves $resolves" : $null )
}
}
Expand Down

0 comments on commit c76470f

Please sign in to comment.