Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aerobs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Gattringer
aerobs
Commits
ab790eaa
Commit
ab790eaa
authored
1 year ago
by
Andreas Gattringer
Browse files
Options
Downloads
Patches
Plain Diff
fixed updload script
parent
37c1d10f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/upload-script.py
+2
-5
2 additions, 5 deletions
scripts/upload-script.py
with
2 additions
and
5 deletions
scripts/upload-script.py
+
2
−
5
View file @
ab790eaa
...
...
@@ -25,6 +25,7 @@ from helpers.ampy import (
list_remote_file_dates_and_directories
,
make_remote_directory
,
)
from
helpers.filesystem
import
get_directory_tree_from_directories
from
helpers.git
import
get_git_unclean_files
from
helpers.imports
import
get_imported_files
...
...
@@ -62,11 +63,7 @@ def upload_files(local_files, script, port: str, ignore_file_times=False):
else
:
print
(
f
"
Skipping
'
{
file_path
}
'
: remote file is newer
"
)
remote_script_date
=
remote_file_dates
.
get
(
"
main.py
"
)
if
remote_file_older_or_missing
(
script
,
remote_script_date
):
upload_file
(
port
,
script
,
"
main.py
"
)
else
:
print
(
f
"
Skipping upload
'
{
script
}
'
as main.py: remote file is newer
"
)
upload_file
(
port
,
script
,
"
main.py
"
)
def
check_for_unclean_files
(
files_to_upload
:
list
[
str
],
args
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment