Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
arch-historical-archive
Commits
64c73627
Commit
64c73627
authored
Mar 28, 2019
by
Florian Pritz
Browse files
Add all paths including sig files to db
Signed-off-by:
Florian Pritz
<
bluewind@xinu.at
>
parent
8c62399f
Changes
1
Hide whitespace changes
Inline
Side-by-side
upload_pkg_internetarchive.py
View file @
64c73627
...
...
@@ -70,9 +70,8 @@ class ArchiveUploader:
res
=
self
.
ia
.
upload
(
identifier
,
files
=
files
,
metadata
=
metadata
)
if
all
([
x
.
status_code
==
200
for
x
in
res
]):
for
f
in
files
:
if
not
f
.
endswith
(
'.sig'
):
filename
=
os
.
path
.
basename
(
f
)
self
.
db
.
add_file
(
filename
)
filename
=
os
.
path
.
basename
(
f
)
self
.
db
.
add_file
(
filename
)
else
:
ok
=
len
([
x
for
x
in
res
if
x
.
status_code
==
200
])
nok
=
len
([
x
for
x
in
res
if
x
.
status_code
!=
200
])
...
...
Write
Preview
Supports
Markdown
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