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
91569584
Commit
91569584
authored
Feb 14, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgp: drop install src.rpm after download, download to current dir
parent
05a8a607
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
rpmgp
bin/rpmgp
+2
-16
No files found.
bin/rpmgp
View file @
91569584
...
...
@@ -7,7 +7,6 @@
# Также можно сразу указать название пакета с исходниками
# Функции скрипта похожи на команду apt-get source пакет
# -c - checkonline
# -n - do not install
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
...
...
@@ -168,8 +167,7 @@ phelp()
exit
0
}
TRYINST
=
"1"
while
getopts
:habcdglmnrs opt
;
do
while
getopts
:habcdglmrs opt
;
do
case
$opt
in
h
)
phelp
;
exit
0
;;
a
)
ALLSYSTEM
=
1
;;
...
...
@@ -179,7 +177,6 @@ while getopts :habcdglmnrs opt; do
g
)
CLONEGIT
=
1
;;
l
)
LISTREQS
=
1
;;
m
)
MIGRATEGEAR
=
1
;;
n
)
TRYINST
=
""
;;
r
)
UPDATECACHE
=
1
;;
s
)
load_systems_list
list_systems
...
...
@@ -373,9 +370,6 @@ if [ -n "$ALLSYSTEM" ] ; then
exit
0
fi
echo
echo
"########################################"
if
[
-z
"
${
1
/*src.rpm/
}
"
]
then
# it is src.rpm package
...
...
@@ -384,10 +378,7 @@ else
SRCRPM
=
$(
querypackage
$1
""
"%{SOURCERPM}
\n
"
)
fi
test
-z
"
$SRCRPM
"
&&
fatal
"Cannon find package for
$1
"
echog
"Try to download
$SRCRPM
"
test
-z
${
TRYINST
}
||
{
mkdir
-p
$RPMTOPDIR
/SRPMS
&&
cd
$RPMTOPDIR
/SRPMS
;
}
echog
"Downloading in
$(
pwd
)
"
echog
"Try to download
$SRCRPM
to
$(
pwd
)
"
for
i
in
$REPOSITORY
do
...
...
@@ -396,8 +387,3 @@ do
--delete-after
--progress
$RSYNCSISYPHUS
/
$i
/
$SRCRPM
./
$SRCRPM
&&
break
done
test
-z
${
TRYINST
}
&&
exit
0
echo
echog
"Installing..."
rpm
-iv
$SRCRPM
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