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
6d43c0ac
Commit
6d43c0ac
authored
Oct 21, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbph: fix -n -u param handling
parent
4489a7dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
rpmbph
bin/rpmbph
+14
-13
No files found.
bin/rpmbph
View file @
6d43c0ac
...
...
@@ -288,16 +288,16 @@ phelp()
}
while
getopts
:hn
iu
vqb: opt
;
do
while
getopts
:hn
ui
vqb: opt
;
do
case
$opt
in
h
)
phelp
;
exit
0
;;
n
)
NOBUILD
=
1
;;
v
)
VERBOSE
=
1
;;
b
)
BINARYREPONAME
=
$OPTARG
;;
q
)
QUIET
=
1
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
# ?) echog "$name: $OPTARG: bad option. Use -h for help." 1>&2
; exit 2;;
?
)
OPTIND
=
$((
OPTIND-1
))
;
break
;
h
)
phelp
;
exit
0
;;
n
)
NOBUILD
=
1
;;
u
)
UPLOADARG
=
"-
$opt
"
;;
v
)
VERBOSE
=
1
;;
b
)
BINARYREPONAME
=
$OPTARG
;;
q
)
QUIET
=
1
;;
+?
)
echog
"
$name
: options should not be preceded by a '+'."
1>&2
;
exit
2
;;
?
)
OPTIND
=
$((
OPTIND-1
))
;
break
;
esac
done
...
...
@@ -306,8 +306,8 @@ if [ $# -gt 0 ]; then
shift
$((
OPTIND
-
1
))
fi
# pass other options to RPM (exclude -
n -
v):
LISTRPMARGS
=
$(
drop_args
"
$*
"
n
v
)
# pass other options to RPM (exclude -v):
LISTRPMARGS
=
$(
drop_args
"
$*
"
v
)
}
set_girar_host
$1
&&
shift
...
...
@@ -388,7 +388,8 @@ if [ "$VENDOR" = "alt" ] && is_gear $SPECDIR ; then
fatal
"Commit error. You are still in
$MDISTR
branch with modified and uncommitted spec"
fi
[
-n
"
$NOBUILD
"
]
&&
BUILDCOMMAND
=
"
$ETERBUILDBIN
/rpmbs
$GIRARHOST
"
$BUILDCOMMAND
$LISTRPMARGS
$REMOTEBUILD
$DISTRARG
$SPEC
||
{
git checkout
$CURBRANCH
;
fatal
"Can't build"
;
}
echo
"Run
$BUILDCOMMAND
"
$BUILDCOMMAND
$LISTRPMARGS
$UPLOADARG
$REMOTEBUILD
$DISTRARG
$SPEC
||
{
git checkout
$CURBRANCH
;
fatal
"Can't build"
;
}
git checkout
$CURBRANCH
exit
$?
fi
...
...
@@ -411,6 +412,6 @@ for i in $LISTBUILT ; do
# FIXME: do not remove if not repacked
#rm -f $SPKG
altspec_to_local
$SPECNAME
$BUILDCOMMAND
$LISTRPMARGS
$REMOTEBUILD
$DISTRARG
$SPECNAME
||
fatal
"Can't build"
$BUILDCOMMAND
$LISTRPMARGS
$
UPLOADARG
$
REMOTEBUILD
$DISTRARG
$SPECNAME
||
fatal
"Can't build"
done
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