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
e2f0991f
Commit
e2f0991f
authored
Jan 03, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgp: improve package checking (support non installed packages)
parent
5e775cdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
rpmgp
bin/rpmgp
+21
-10
No files found.
bin/rpmgp
View file @
e2f0991f
...
...
@@ -237,31 +237,42 @@ fi
# Check online
if
[
-n
"
$CHECKONLINE
"
]
;
then
# possible it is spec
if
[
-f
$1
]
;
then
build_rpms_name
"
$1
"
SRCRPM
=
$NAMESRPMIN
PKGNAME
=
$(
get_pkgname_from_filename
$SRCRPM
)
else
echo
$1
|
grep
rpm 2>/dev/null
&&
SRCRPM
=
$1
||
SRCRPM
=
`
rpm
-q
$1
--queryformat
"%{SOURCERPM}
\n
"
|
tail
-n
1
`
if
echo
$1
|
grep
-q
rpm
;
then
SRCRPM
=
$1
PKGNAME
=
$(
get_pkgname_from_filename
$SRCRPM
)
else
PKGNAME
=
$1
SRCRPM
=
`
rpm
-q
$PKGNAME
--queryformat
"%{SOURCERPM}
\n
"
|
tail
-n
1
`
fi
fi
if
[
-n
"
$GIRAR_USER
"
]
;
then
GITURL
=
"http://git.altlinux.org/people/
$GIRAR_USER
/packages/
$(
get_pkgname_from_filename
$SRCRPM
)
.git"
GITURL
=
"http://git.altlinux.org/people/
$GIRAR_USER
/packages/
$PKGNAME
.git"
if
GET
-d
$GITURL
;
then
echog
"Published at
$GITURL
by
$GIRAR_USER
"
else
echog
"There is no git repo
$GITURL
"
fi
fi
list_git_package
$
(
get_pkgname_from_filename
$SRCRPM
)
list_git_package
$
PKGNAME
RET
=
"MISSED"
for
i
in
$REPOSITORY
;
do
echog
"Checking in repository
$i
..."
rsync
-n
--progress
$RSYNCSISYPHUS
/
$i
/
$SRCRPM
>
/dev/null 2>&1
&&
{
RET
=
$i
;
break
;
}
done
echog
"Repository Filename"
printf
"%-12s %30s
\n
"
$RET
$SRCRPM
if
[
-n
"
$SRCRPM
"
]
;
then
for
i
in
$REPOSITORY
;
do
echog
"Checking '
$SRCRPM
' in repository
$i
..."
rsync
-n
--progress
$RSYNCSISYPHUS
/
$i
/
$SRCRPM
>
/dev/null 2>&1
&&
{
RET
=
$i
;
break
;
}
done
echog
"Repository Filename"
printf
"%-12s %30s
\n
"
$RET
$SRCRPM
fi
if
[
"
$RET
"
=
"MISSED"
]
;
then
exit
1
fi
...
...
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