Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
7398e449
Commit
7398e449
authored
Aug 20, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bin/check-pkg-list: return error, if lists contain unavailable packages
parent
2c3415ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
check-pkg-list
bin/check-pkg-list
+5
-0
No files found.
bin/check-pkg-list
View file @
7398e449
...
...
@@ -10,6 +10,8 @@
# (pkgnames file should contain `apt-cache pkgnames`)
# NB: -n pkgnames MUST go first, if given
RET_ERROR
=
error
()
{
echo
`
basename
$0
`
:
$*
>
&2
;
exit
1
;
}
exit_handler
()
{
...
...
@@ -50,6 +52,7 @@ check_pkglist() {
done
<
"
$fpkgwildcards
"
if
[
-s
"
$fpkgerrors
"
]
;
then
echo
"Error: Packages are not available in
$fprofilelist
:"
>
&2
RET_ERROR
=
1
cat
$fpkgerrors
>
&2
fi
}
...
...
@@ -93,3 +96,5 @@ done
for
list
in
"
$@
"
;
do
check_pkglist
"
$list
"
done
[
-z
"
$RET_ERROR
"
]
||
error
"Some lists contain unavailable packages"
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