Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
fa917f0b
Commit
fa917f0b
authored
4 years ago
by
Alexander V. Tikhonov
Committed by
Kirill Yukhin
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
update_repo: fix unbound variables
Fixed unbound variables at packaging tool update_repo.sh. Closes #5114
parent
9bb2d472
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/update_repo.sh
+4
-3
4 additions, 3 deletions
tools/update_repo.sh
with
4 additions
and
3 deletions
tools/update_repo.sh
+
4
−
3
View file @
fa917f0b
...
...
@@ -699,7 +699,7 @@ function pack_rpm {
for
metafile
in
repodata.base/other
\
repodata.base/filelists
\
repodata.base/primary
;
do
up_lines
=
''
up_
full_
lines
=
''
if
[
"
$metafile
"
==
"repodata.base/primary"
]
;
then
up_full_lines
=
'(\N+\n)*'
fi
...
...
@@ -845,7 +845,7 @@ function remove_rpm {
# entry in damaged file, to fix it all found entries
# of this file need to be removed
for
metafile
in
other filelists primary
;
do
up_lines
=
''
up_
full_
lines
=
''
if
[
"
$metafile
"
==
"primary"
]
;
then
up_full_lines
=
'(\N+\n)*'
fi
...
...
@@ -940,6 +940,7 @@ elif [ "$os" == "el" -o "$os" == "fedora" ]; then
# script twice with the given format:
# pack_rpm <packages store subpath> <patterns of the packages to register>
packed_rpms
=
""
# prepare the workspace
prepare_ws
${
os
}
_
${
option_dist
}
if
[
"
$remove
"
!=
""
]
;
then
...
...
@@ -962,7 +963,7 @@ elif [ "$os" == "el" -o "$os" == "fedora" ]; then
$rm_file
$ws_lockfile
popd
2>/dev/null
||
true
if
[
-z
"
$packed_rpms
"
]
;
then
if
[
"
$remove
"
==
""
-a
"
$packed_rpms
"
==
""
]
;
then
echo
"ERROR: Current '
$repo
' path doesn't have '*.x86_64.rpm *.noarch.rpm *.src.rpm' packages in path"
usage
exit
1
...
...
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