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
5bdc3532
Commit
5bdc3532
authored
Jan 02, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add get_pkgname_from_filename, test for it, use it
parent
8c4b2fec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
rpmgp
bin/rpmgp
+2
-1
rpm
share/eterbuild/functions/rpm
+6
-0
get_packagename.sh
tests/get_packagename.sh
+19
-0
No files found.
bin/rpmgp
View file @
5bdc3532
...
...
@@ -246,12 +246,13 @@ if [ -n "$CHECKONLINE" ] ; then
fi
if
[
-n
"
$GIRAR_USER
"
]
;
then
GITURL
=
"http://git.altlinux.org/people/
$GIRAR_USER
/packages/
$
{
SRCRPM
/-*/
}
.git"
GITURL
=
"http://git.altlinux.org/people/
$GIRAR_USER
/packages/
$
(
get_pkgname_from_filename
$SRCRPM
)
.git"
if
GET
-d
$GITURL
;
then
echog
"Published at
$GITURL
by
$GIRAR_USER
"
else
echog
"There is no git repo
$GITURL
"
fi
ssh
$GIRARHOST
find-package
$(
get_pkgname_from_filename
$SRCRPM
)
fi
RET
=
"MISSED"
for
i
in
$REPOSITORY
;
do
...
...
share/eterbuild/functions/rpm
View file @
5bdc3532
...
...
@@ -63,6 +63,12 @@ build_rpms_name()
build_buildroot
}
# pkg-source-1.0.src.rpm -> pkg-source
get_pkgname_from_filename
()
{
echo
${
1
/-[0-9]*/
}
}
# build binary package list (1st - repo dir, 2st - pkgname)
# algorithm: list all files in PKGDIR, print packages with our source pkg name
...
...
tests/get_packagename.sh
0 → 100755
View file @
5bdc3532
#!/bin/sh
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod spec rpm
check
()
{
[
"
$2
"
!=
"
$3
"
]
&&
echo
"FATAL with '
$1
': result '
$2
' do not match with '
$3
'"
||
echo
"OK for '
$1
' with '
$2
'"
}
check_pkg
()
{
check
"
$1
"
$(
get_pkgname_from_filename
"
$1
"
)
"
$2
"
}
check_pkg pkg-1.0.spec pkg
check_pkg pkg-source-1.0.spec pkg-source
check_pkg pkg-source-less-1.0.spec pkg-source-less
check_pkg pkg123-1.0.spec pkg123
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