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
0007f66b
Commit
0007f66b
authored
Mar 06, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix rpmgp after refactoring
parent
dd87316c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
rpmgp
bin/rpmgp
+17
-15
No files found.
bin/rpmgp
View file @
0007f66b
...
...
@@ -92,7 +92,7 @@ check_name()
echo
"Error: missed package param"
exit
1
fi
NLIST
=
`
cat
$LIST
|
grep
-i
$1
`
NLIST
=
`
cat
$LIST
|
grep
-i
"
$1
"
`
# if [ `cat $LIST | list_filter | grep -i $1 | wc -l` -gt 1 ] ; then
#echo "Please type a full name of the package"
# print_list $NLIST
...
...
@@ -115,7 +115,7 @@ check_system()
#echo "Check for $SYSTEM"
get_list
$IDX
#ls -l $LIST
check_name
$NAME
check_name
$
PKG
NAME
if
[
"
$DOWNLOADALL
"
]
;
then
for
i
in
$NLIST
;
do
download_url
$URL
/
$i
...
...
@@ -188,9 +188,12 @@ done
# FIXME: параметры передаются и дальше (например, -i, -b)
# remove args that were options
if
[
$#
-gt
0
]
;
then
shift
$((
OPTIND
-
1
))
fi
#if [ $# -gt 0 ]; then
# shift $((OPTIND - 1))
#fi
# remove args that were options
shift
$((
OPTIND
-
1
))
# pass other options to RPM:
LISTRPMARGS
=
$@
...
...
@@ -328,27 +331,26 @@ fi
# FIXME: use mygetopts (LISTRPMARGS and so)
if
[
-n
"
$2
"
]
&&
[
"
$1
"
=
"all"
]
;
then
shift
ALLSYSTEM
=
1
fi
#
if [ -n "$2" ] && [ "$1" = "all" ] ; then
#
shift
#
ALLSYSTEM=1
#
fi
# DISABLED. TODO: REWRITE
# Check concrete system
# two params: system, package
if
[
-n
"
$2
"
]
;
then
NAME
=
$2
if
[
-n
"
$2
"
]
&&
false
;
then
PKG
NAME
=
$2
load_systems_list
IDX
=
`
get_system_idx
"
$1
"
`
if
[
-n
"
$IDX
"
]
;
then
check_system
$IDX
print_list
$NLIST
else
#
fatal "Unknown system '$1', use rpmgp -s for get list"
NAME
=
fatal
"Unknown system '
$1
', use rpmgp -s for get list"
#PKG
NAME=
fi
exit
0
else
NAME
=
$1
fi
# Check all systems
...
...
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