-
Notifications
You must be signed in to change notification settings - Fork 44
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
Added RelURL class (jsc#SLE-22669) #1215
Conversation
# in an installed system. | ||
def self.from_installation_repository(rel_url) | ||
base_url = Yast::InstURL.installInf2Url("") | ||
new(base_url, rel_url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what will happen if nont relative url is called?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The result will be this non-relative URL. The caller is responsible to use a relative URL to make it work properly.
# it creates a copy of the input object and pre-processes the | ||
# "file://" and "relurl://" URLs | ||
def import_url(url) | ||
ret = URI(url).dup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how it handles exception from URI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No handling, they will just pass through. https://github.com/yast/yast-yast2/pull/1215/files#diff-89f24a21ba7c6b66736e8891b6fc08a235e2ef35a6d11e39fc5ee3c076b1ab38R47-R55
✔️ Public Jenkins job #336 successfully finished |
❌ Internal Jenkins job #172 failed |
❌ Internal Jenkins job #173 failed |
Description
relurl://
URLsDetails
../
)~
with the home directory path on the local system which is not what you would expect in URLs.Testing