Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
korinf
etersoft-build-utils
Commits
c7ddb4ba
Commit
c7ddb4ba
authored
Nov 22, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
myhsh: add -a for --query-repackage
parent
8e971159
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
myhsh
bin/myhsh
+5
-3
No files found.
bin/myhsh
View file @
c7ddb4ba
...
...
@@ -28,15 +28,17 @@ phelp()
echog
" -r remove packages from test hasher"
echog
" -p print binary packages by built list"
echog
" -l lazy cleanup (before build, not after)"
echog
" -a pass --query-repackage to hsh"
echog
" -b REPONAME binary repository name (p6, t6, c7, p8 and so on)"
}
while
getopts
:hbpclr opt
;
do
while
getopts
:h
a
bpclr opt
;
do
case
$opt
in
h
)
phelp
;
exit
0
;;
p
)
PRINTBINPKG
=
1
;;
b
)
BINARYREPONAME
=
$OPTARG
;;
r
)
REMOVEPKG
=
1
;;
a
)
REPACKAGE
=
"--query-repackage"
;;
l
)
HASHERARG
=
"
$HASHERARG
--lazy-cleanup"
;;
c
)
WITHSTUFF
=
"--without-stuff"
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
...
...
@@ -122,7 +124,7 @@ prepare_aptconfig
# TODO: for add $LISTRPMARGS we need skip function for delete "our" params
# we do not need check cases for mount points, thanks ldv@
HASHERARG
=
"--no-sisyphus-check=
$HASHER_NOCHECK
--apt-config=
$OURAPTCONF
--target
$BUILDARCH
$HASHERARG
"
HASHERARG
=
"--mountpoints=/proc,/dev/pts
$HASHERARG
"
HASHERARG
=
"--mountpoints=/proc,/dev/pts
$HASHERARG
$REPACKAGE
"
BUILDARGS
=
""
...
...
@@ -133,7 +135,7 @@ fi
LISTBUILTSH
=
""
for
i
in
$LISTNAMES
do
LOGFILE
=
"
$LOGDIR
/
`
basename
$i
.src.rpm
`
$MENVARG
.log"
LOGFILE
=
"
$LOGDIR
/
$(
basename
$(
basename
$i
.src.rpm
)
.tar
)
$MENVARG
.log"
echo
"Build in hasher (
$MENV
) in
$HASHERDIR
dir"
>
$LOGFILE
rm
-f
$LOGFILE
.ok
echog
"Build in hasher:
$i
(arg:
$HASHERARG
--build-args
\"
$BUILDARGS
\"
, distro:
$MENV
, hasherdir:
$HASHERDIR
)"
...
...
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