Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending support of powershell feature for AlmaLinux #1303

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

sireeshajonnalagadda
Copy link
Contributor

Feature Name

  • Powershell

Description of Changes

Changelog

  • Modified the install.sh to work the expected installation for AlmaLinux

  • Modified the test cases scenarios to meet the required checks for the powershell.

Checklist

  • Checked that applied changes work as expected

Copy link
Contributor

@Kaniska244 Kaniska244 left a comment

Choose a reason for hiding this comment

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

Hi @sireeshajonnalagadda ,

Left a few comments. Kindly check & let me know in case of further concerns.

elif command -v rpm > /dev/null 2>&1 && command -v dnf > /dev/null 2>&1; then
# If rpm and dnf exist, assume DNF-based system (RHEL/AlmaLinux)
for package in "$@"; do
if ! rpm -q "$package" > /dev/null 2>&1; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @sireeshajonnalagadda ,

Why do we need to check with rpm for the pakcge existence, can't we use dnf directly in this case?

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks fine with the latest check-in.

keyserver hkps://keys.openpgp.org
keyserver hkp://pgp.mit.edu
keyserver hkp://keyserver.redhat.com"

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @sireeshajonnalagadda ,

Do we need all the above keyservers for almalinux support? If so, kindly add suitable comments.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is also fine with code comments added specifically for this in the latest check-in

@@ -202,7 +293,12 @@ install_using_github() {
check_packages git
fi
if [ "${architecture}" = "amd64" ]; then
architecture="amd64"
elif [ "${architecture}" = "x86_64" ]; then
architecture="x86_64"
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @sireeshajonnalagadda ,

The amd64 or x86_64 are basically the same CPU architecture, so should work with same installation package. Why do we need multiple conditions here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks fine with the latest check-in.

@@ -212,7 +308,12 @@ install_using_github() {
fi

# Ugly - but only way to get sha256 is to parse release HTML. Remove newlines and tags, then look for filename followed by 64 hex characters.
curl -sSL -o "release.html" "https://github.com/PowerShell/PowerShell/releases/tag/v${POWERSHELL_VERSION}"
#curl -sSL -o "release.html" "https://github.com/PowerShell/PowerShell/releases/tag/v${POWERSHELL_VERSION}"
wget https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/${powershell_filename}
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @sireeshajonnalagadda ,

Kindly explain the reason behind switching from curl to wget in this scenario. Please add suitable comment for the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants