Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
LDV
bf_double_tgz
Commits
807c3347
Commit
807c3347
authored
Aug 25, 2022
by
Mattia Mancini
Browse files
Fix script to output file content anyways
parent
0e6fc8a1
Pipeline
#34896
passed with stage
in 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bf_pulp_utils/bf_pulp_utils/double_tgz_elimination.py
View file @
807c3347
...
...
@@ -64,6 +64,12 @@ def main():
matches
.
append
(
filename
)
inputtar
.
close
()
ascii_name
=
output_tarball
+
"_filecontent.txt"
with
open
(
ascii_name
,
"w"
)
as
outfile
:
outfile
.
write
(
"
\n
"
.
join
(
dircontent
))
print
(
os
.
listdir
(
'.'
))
# checking whether _all_ files in dircontent have the same prefix dirname in the path
dirprefix
=
dircontent
[
0
].
split
(
"/"
)[
0
]
for
ii
in
dircontent
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment