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

Fixes relabel.sh to handle empty string being passed in. #2863

Merged
merged 1 commit into from Nov 23, 2016

Conversation

dkliban
Copy link
Member

@dkliban dkliban commented Nov 23, 2016

The new version comparison mechanism no longer handled an empty string being passed in.
As a result none of the restorecon statements were getting run at the end of pulp-selinux
installation.

closes #2436
https://pulp.plan.io/issues/2436

The new version comparison mechanism no longer handled an empty string being passed in.
As a result none of the restorecon statements were getting run at the end of pulp-selinux
installation.

closes pulp#2436
https://pulp.plan.io/issues/2436
@mention-bot
Copy link

@dkliban, thanks for your PR! By analyzing the history of the files in this pull request, we identified @bowlofeggs and @bmbouter to be potential reviewers.

# Set the previous version to 0.0 if one is not passed in
if [ -z $1 ]
then
set -- "0.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

BASH VOODOO MAGIC

@seandst
Copy link
Contributor

seandst commented Nov 23, 2016

The travis failures are a result of travis trying to pep8-verify a bash script. They should be ignored.

@dkliban dkliban merged commit d3e776b into pulp:2.10-dev Nov 23, 2016
@dkliban dkliban deleted the fix-relabel.sh branch November 23, 2016 17:40
bmbouter pushed a commit to bmbouter/pulp that referenced this pull request Nov 29, 2016
The problem with the first backport was that it was not entirely
compatible with requests-2.6 and urllib3-1.10, which is what el6 and el7
ship.
bmbouter pushed a commit to bmbouter/pulp that referenced this pull request Nov 29, 2016
The problem with the first backport was that it was not entirely
compatible with requests-2.6 and urllib3-1.10, which is what el6 and el7
ship.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants