Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
srpmproc
Commits
b699ae6d
Commit
b699ae6d
authored
Feb 14, 2021
by
Mustafa Gezen
Browse files
Fix metadata creation and simplify deduplication
parent
0db0040f
Changes
1
Hide whitespace changes
Inline
Side-by-side
internal/process.go
View file @
b699ae6d
...
...
@@ -220,11 +220,13 @@ func ProcessRPM(pd *ProcessData) {
log
.
Fatalf
(
"could not create metadata file: %v"
,
err
)
}
for
_
,
source
:=
range
md
.
sourcesToIgnore
{
if
source
.
expired
{
sourcePath
:=
source
.
name
_
,
err
:=
w
.
Filesystem
.
Stat
(
sourcePath
)
if
source
.
expired
||
err
!=
nil
{
continue
}
sourcePath
:=
source
.
name
sourceFile
,
err
:=
w
.
Filesystem
.
Open
(
sourcePath
)
if
err
!=
nil
{
log
.
Fatalf
(
"could not open ignored source file %s: %v"
,
sourcePath
,
err
)
...
...
@@ -246,7 +248,7 @@ func ProcessRPM(pd *ProcessData) {
log
.
Fatalf
(
"could not write to metadata file: %v"
,
err
)
}
path
:=
fmt
.
Sprintf
(
"%s"
,
checksum
)
path
:=
checksum
if
strContains
(
alreadyUploadedBlobs
,
path
)
{
continue
}
...
...
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