Commit 5598114d authored by Vitaly Lipatov's avatar Vitaly Lipatov

myhsh: add TODO build correct src.rpm via hasher

parent d081d50f
...@@ -25,6 +25,7 @@ phelp() ...@@ -25,6 +25,7 @@ phelp()
echo echo
echog "Options:" echog "Options:"
echog " -c build without stuff (without previous built packages)" echog " -c build without stuff (without previous built packages)"
echog " -n build src.rpm only"
echog " -r remove packages from test hasher" echog " -r remove packages from test hasher"
echog " -p print binary packages by built list" echog " -p print binary packages by built list"
echog " -l lazy cleanup (before build, not after)" echog " -l lazy cleanup (before build, not after)"
...@@ -32,11 +33,12 @@ phelp() ...@@ -32,11 +33,12 @@ phelp()
echog " -b REPONAME binary repository name (p6, t6, c7, p8 and so on)" echog " -b REPONAME binary repository name (p6, t6, c7, p8 and so on)"
} }
while getopts :habpclr opt; do while getopts :habpnclr opt; do
case $opt in case $opt in
h) phelp; exit 0;; h) phelp; exit 0;;
p) PRINTBINPKG=1;; p) PRINTBINPKG=1;;
b) BINARYREPONAME=$OPTARG ;; b) BINARYREPONAME=$OPTARG ;;
n) BUILDSRCRPM="--build-srpm-only";;
r) REMOVEPKG=1;; r) REMOVEPKG=1;;
a) REPACKAGE="--query-repackage";; a) REPACKAGE="--query-repackage";;
l) HASHERARG="$HASHERARG --lazy-cleanup";; l) HASHERARG="$HASHERARG --lazy-cleanup";;
...@@ -124,7 +126,7 @@ prepare_aptconfig ...@@ -124,7 +126,7 @@ prepare_aptconfig
# TODO: for add $LISTRPMARGS we need skip function for delete "our" params # TODO: for add $LISTRPMARGS we need skip function for delete "our" params
# we do not need check cases for mount points, thanks ldv@ # we do not need check cases for mount points, thanks ldv@
HASHERARG="--no-sisyphus-check=$HASHER_NOCHECK --apt-config=$OURAPTCONF --target $BUILDARCH $HASHERARG" HASHERARG="--no-sisyphus-check=$HASHER_NOCHECK --apt-config=$OURAPTCONF --target $BUILDARCH $HASHERARG"
HASHERARG="--mountpoints=/proc,/dev/pts $HASHERARG $REPACKAGE" HASHERARG="--mountpoints=/proc,/dev/pts $HASHERARG $REPACKAGE $BUILDSRCRPM"
BUILDARGS="" BUILDARGS=""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment