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
2f457238
Commit
2f457238
authored
Dec 20, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add get_sourcepkg_name function (rpm only) and use it in rpmurl
parent
46fcd193
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
rpmurl
bin/rpmurl
+2
-5
rpm
share/eterbuild/functions/rpm
+8
-0
No files found.
bin/rpmurl
View file @
2f457238
...
...
@@ -98,16 +98,13 @@ get_pagepkginfo()
then
if
[
-z
${
i
/*rpm/
}
]
then
# it is rpm package
PKGVERSION
=
$(
querypackage
${
i
}
VERSION
)
PKGNAME
=
$(
querypackage
${
i
}
sourcerpm |
sed
-e
"s|-
$PKGVERSION
.*||g"
)
PKGNAME
=
$(
get_sourcepkg_name
"
$i
"
)
else
PKGNAME
=
$(
get_name
${
i
})
fi
else
# installed package name
PKGVERSION
=
$(
querypackage
${
i
}
VERSION
}
)
PKGNAME
=
$(
querypackage
${
i
}
sourcerpm |
sed
-e
"s|-
$PKGVERSION
.*||g"
)
PKGNAME
=
$(
get_sourcepkg_name
"
$i
"
)
fi
if
[
-z
"
$PKGNAME
"
]
;
then
PKGNAME
=
"
$i
"
...
...
share/eterbuild/functions/rpm
View file @
2f457238
...
...
@@ -107,6 +107,14 @@ get_pkgname_from_filename()
echo
${
1
/-[0-9]*/
}
}
# return source package name by binary rpm package file
get_sourcepkg_name
()
{
local
FILE
=
"
$1
"
local
PKGVERSION
=
$(
querypackage
"
$FILE
"
VERSION
)
querypackage
"
$FILE
"
sourcerpm |
sed
-e
"s|-
$PKGVERSION
.*||g"
}
# build binary package list (1st - repo dir, 2st - pkgname)
# algorithm: list all files in PKGDIR, print packages with our source pkg name
...
...
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