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
212009b5
Commit
212009b5
authored
Jan 14, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgp: fix -b option (install buildreqs packages) to work in distro independent manner
parent
8238e8e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
rpmgp
bin/rpmgp
+8
-7
No files found.
bin/rpmgp
View file @
212009b5
...
...
@@ -11,7 +11,7 @@
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod rpm repl git
load_mod rpm repl git
rpm
# path to ALT Linux's repositories
REPOSITORY
=
"files/SRPMS obsolete orphaned"
...
...
@@ -221,20 +221,21 @@ test -z "$LISTARGS" && fatal "Please run with spec/package name"
#
# - []
# install binary packages
# install
required for build
binary packages
if
[
-n
"
$INSTALLBINARY
"
]
;
then
parse_cmd_pre
"
$@
"
pack_src_rpm
$LISTRPMARGS
echog
"Running apt-get build-dep for install needed packages for
$LISTBUILT
"
# FIXME: ALT Specific
$SUDO
apt-get build-dep
$LISTBUILT
exit
0
LISTPKG
=
$(
rpmquery
--requires
-p
$LISTBUILT
| clean_pkgreq |
sed
-e
"s|rpm-build-altlinux-compat||g"
)
DISTRVENDOR
=
$(
distr_vendor
-d
)
CMD
=
$(
get_install_package_command
$DISTRVENDOR
interactive
)
echog
"Running
$SUDO
$CMD
$LISTPKG
..."
$SUDO
$CMD
$LISTPKG
fi
# clone remote git
if
[
-n
"
$CLONEGIT
"
]
;
then
PKGNAME
=
$1
INITLETTER
=
$(
echo
$PKGNAME
|
sed
"s/^
\(
.
\)
.*/
\1
/g"
)
INITLETTER
=
$(
echo
$PKGNAME
|
cut
-c1
)
# http://git.altlinux.org/srpms/N/NAME.git
echo
"Remote clone from /srpms/
$INITLETTER
/
$PKGNAME
.git ..."
ssh
$GIRARHOST
clone /srpms/
$INITLETTER
/
$PKGNAME
.git packages/
$PKGNAME
.git
||
warning
"Can't remote clone."
...
...
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