Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
47b94832
Unverified
Commit
47b94832
authored
Oct 07, 2018
by
Sébastien Eustace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix self:update command
parent
481bb7dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
poetry/console/commands/self/update.py
+4
-3
No files found.
poetry/console/commands/self/update.py
View file @
47b94832
...
...
@@ -27,7 +27,7 @@ class SelfUpdateCommand(Command):
{ --preview : Install prereleases. }
"""
BASE_URL
=
"https://github.com/sdispater/poetry/releases/download
/
"
BASE_URL
=
"https://github.com/sdispater/poetry/releases/download"
@property
def
home
(
self
):
...
...
@@ -146,6 +146,7 @@ class SelfUpdateCommand(Command):
shutil
.
rmtree
(
str
(
self
.
lib_backup
))
self
.
line
(
""
)
self
.
line
(
""
)
self
.
line
(
"<info>Poetry</info> (<comment>{}</comment>) is installed now. Great!"
.
format
(
version
...
...
@@ -162,7 +163,7 @@ class SelfUpdateCommand(Command):
checksum
=
"poetry-{}-{}.sha256sum"
.
format
(
version
,
platform
)
try
:
r
=
urlopen
(
self
.
BASE_URL
+
"/
releases/{}"
.
format
(
checksum
))
r
=
urlopen
(
self
.
BASE_URL
+
"/
{}/{}"
.
format
(
version
,
checksum
))
except
HTTPError
as
e
:
if
e
.
code
==
404
:
raise
RuntimeError
(
"Could not find {} file"
.
format
(
checksum
))
...
...
@@ -174,7 +175,7 @@ class SelfUpdateCommand(Command):
# We get the payload from the remote host
name
=
"poetry-{}-{}.tar.gz"
.
format
(
version
,
platform
)
try
:
r
=
urlopen
(
self
.
BASE_URL
+
"/
releases/{}"
.
format
(
name
))
r
=
urlopen
(
self
.
BASE_URL
+
"/
{}/{}"
.
format
(
version
,
name
))
except
HTTPError
as
e
:
if
e
.
code
==
404
:
raise
RuntimeError
(
"Could not find {} file"
.
format
(
name
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment