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
0
Merge Requests
0
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
Anton Palgunov
mkimage-profiles
Commits
2c3415ff
You need to sign in or sign up before continuing.
Commit
2c3415ff
authored
Aug 20, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bin/check-pkg-list: clean debug messages
There is little use, but a lot of noise.
parent
d0bc4229
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
check-pkg-list
bin/check-pkg-list
+0
-5
No files found.
bin/check-pkg-list
View file @
2c3415ff
...
...
@@ -11,7 +11,6 @@
# NB: -n pkgnames MUST go first, if given
error
()
{
echo
`
basename
$0
`
:
$*
>
&2
;
exit
1
;
}
debug
()
{
[
-n
"
$GLOBAL_VERBOSE
"
]
&&
echo
`
basename
$0
`
:
$*
>
&2
;
}
exit_handler
()
{
local
rc
=
$?
...
...
@@ -28,8 +27,6 @@ dump_pkgnames() {
check_pkglist
()
{
fprofilelist
=
"
$1
"
[
-f
"
$fprofilelist
"
]
||
error
"invalid packagelist filename:
$fprofilelist
"
debug
"checking
$fprofilelist
against
$favaillist
"
# cleaning pkg list from comments, empty lines,
# splitting several pkgnames on the same line
sed
-e
'/^#/d'
-e
'/^[ ]*$/d'
-e
's/ \+$//'
-e
's/[ ]\+/\n/g'
\
...
...
@@ -43,11 +40,9 @@ check_pkglist() {
fgrep
'*'
"
$ftemp
"
>
"
$fpkgwildcards
"
# return unavailable packages
debug
"unavailable packagenames, if any:"
comm
-23
"
$fpkgnames
"
"
$favaillist
"
>
"
$fpkgerrors
"
# return unavailable wildcards
debug
"unavailable wildcards, if any:"
while
read
i
;
do
# replacing * with regexp's \.+
pattern
=
"^
`
echo
${
i
#^
}
|
sed
-e
's/\*/.\\\\+/'
`
$"
...
...
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