Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Gallery package root url #255

Merged
merged 4 commits into from
Dec 21, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cleanup au_GalleryPackageRootUrl code
  • Loading branch information
danmetzler committed Dec 21, 2021
commit f7efb025db7bc4b2ba3fbc9ec20110a1c5ed0eac
3 changes: 1 addition & 2 deletions AU/Public/Update-Package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ function Update-Package {
if ([AUVersion] $Latest.Version -gt [AUVersion] $Latest.NuspecVersion) {
if (!($NoCheckChocoVersion -or $Force)) {
if ( !$au_GalleryPackageRootUrl ) {
if ( $au_GalleryUrl ) { $au_GalleryPackageRootUrl = "$au_GalleryUrl/packages" }
else { $au_GalleryPackageRootUrl = 'https://chocolatey.org/packages' }
$au_GalleryPackageRootUrl = if ($au_GalleryUrl) { "$au_GalleryUrl/packages" } else { 'https://chocolatey.org/packages' }
}
$choco_url = "$au_GalleryPackageRootUrl/{0}/{1}" -f $global:Latest.PackageName, $package.RemoteVersion
try {
Expand Down