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

Conversation

danmetzler
Copy link
Contributor

Closes #250

This worked for me, and appears to pass tests.

if ( !$au_GalleryUrl ) { $au_GalleryUrl = 'https://chocolatey.org' }
$choco_url = "$au_GalleryUrl/packages/{0}/{1}" -f $global:Latest.PackageName, $package.RemoteVersion
if ( !$au_GalleryPackageRootUrl ) {
if ( $au_GalleryUrl ) { $au_GalleryPackageRootUrl = "$au_GalleryUrl/packages" }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$au_GalleryPackageRootUrl = if ($au_GalleryUrl) { "$au_GalleryUrl/packages" } else { 'https://chocolatey.org/packages' }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed your cleaner update. Thanks.

@majkinetor majkinetor merged commit 2507262 into majkinetor:master Dec 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

au_GalleryUrl implementation assumes all chocolatey packages are hosted in a feed called packages
2 participants