Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dedal
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
dedal
Commits
3beed4bb
Commit
3beed4bb
authored
7 months ago
by
Eric Müller
Browse files
Options
Downloads
Patches
Plain Diff
fixup(c/22962): whitespace & error reporting
Change-Id: I320c7e3d3bf6c2fb1f05a69306f4e70743effa2d
parent
8752f8fd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/yashchiki/commons.sh
+5
-1
5 additions, 1 deletion
lib/yashchiki/commons.sh
lib/yashchiki/fetch.sh
+7
-4
7 additions, 4 deletions
lib/yashchiki/fetch.sh
with
12 additions
and
5 deletions
lib/yashchiki/commons.sh
+
5
−
1
View file @
3beed4bb
...
...
@@ -308,7 +308,11 @@ install_from_buildcache() {
_install_from_buildcache
()
{
# only extract the hashes present in buildcache on first invocation
if
((
"
$(
wc
-l
<
"
${
FILE_HASHES_BUILDCACHE
}
"
)
"
==
0
))
;
then
size_file_hashes
=
0
if
[
-e
"
${
FILE_HASHES_BUILDCACHE
}
"
]
;
then
size_file_hashes
=
"
$(
wc
-l
<
"
${
FILE_HASHES_BUILDCACHE
}
"
)
"
fi
if
((
"
${
size_file_hashes
}
"
==
0
))
;
then
compute_hashes_buildcache
fi
...
...
This diff is collapsed.
Click to expand it.
lib/yashchiki/fetch.sh
+
7
−
4
View file @
3beed4bb
...
...
@@ -180,10 +180,13 @@ fi
fetch_specfiles
=()
for
package
in
"
${
packages_to_fetch
[@]
}
"
;
do
specfile
=
"
$(
get_specfile_name
"
${
package
}
"
)
"
echo
"Specfile for
${
package
}
is
${
specfile
}
."
word_count
=
$(
wc
-l
<
"
${
specfile
}
"
)
echo
"Word count
${
word_count
}
"
if
((
$(
wc
-l
<
"
${
specfile
}
"
)
==
0
))
;
then
echo
"Specfile for
${
package
}
is
${
specfile
}
."
word_count
=
0
if
[
-e
"
${
specfile
}
"
]
;
then
word_count
=
$(
wc
-l
<
"
${
specfile
}
"
)
fi
echo
"Specfile word count
${
word_count
}
"
if
[
"
${
word_count
}
"
-eq
0
]
;
then
echo
"
${
package
}
failed to concretize!"
>
&2
exit
1
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment