Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nvidia-patch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
nvidia-patch
Commits
5a4b9c74
Commit
5a4b9c74
authored
Dec 10, 2022
by
Jai Luthra
Committed by
GitHub
Dec 10, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #593 from reloxx13/feature/re-use_already_downloaded_driver
[FR] WinTool: Re-use a downloaded driver in temp
parents
68054eff
859fc326
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
win/tools/autopatch/autopatch.py
win/tools/autopatch/autopatch.py
+10
-4
No files found.
win/tools/autopatch/autopatch.py
View file @
5a4b9c74
...
...
@@ -203,10 +203,16 @@ def patch_flow(installer_file, search, replacement, target, target_name, patch_n
else
:
# installer_file is an url
filename
=
os
.
path
.
basename
(
installer_file
)
# download installer and save in .temp
print
(
f
"Downloading... ( {installer_file} TO {os.path.join('temp', filename)} )"
)
print
(
"This may take a while (~800MB)"
)
urllib
.
request
.
urlretrieve
(
installer_file
,
os
.
path
.
join
(
'temp'
,
filename
))
installer_file
=
os
.
path
.
join
(
'temp'
,
filename
)
if
not
os
.
path
.
isfile
(
os
.
path
.
join
(
'temp'
,
filename
)):
# check if file already downloaded
print
(
f
"Downloading... ( {installer_file} TO {os.path.join('temp', filename)} )"
)
print
(
"This may take a while (~800MB)"
)
urllib
.
request
.
urlretrieve
(
installer_file
,
os
.
path
.
join
(
'temp'
,
filename
))
installer_file
=
os
.
path
.
join
(
'temp'
,
filename
)
else
:
installer_file
=
os
.
path
.
join
(
'temp'
,
filename
)
print
(
f
"Use downloaded file in `{installer_file}`"
)
patch
=
make_patch
(
installer_file
,
...
...
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