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
b365d427
Commit
b365d427
authored
Jan 20, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove duplicated code
parent
3723c810
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
test_tr_srpm.sh
tests/test_tr_srpm.sh
+13
-15
No files found.
tests/test_tr_srpm.sh
View file @
b365d427
...
...
@@ -3,38 +3,36 @@
.
`
dirname
$0
`
/../share/eterbuild/functions/common
.
$ETERBUILDDIR
/functions/rpm
prepare_unpacked_package
()
{
local
TMPBPDIR
=
$RPMDIR
/BP
mkdir
-p
$TMPBPDIR
rpm
-iv
--define
"_srcrpmdir
$TMPBPDIR
/SRPMS"
$1
}
install_srpm_package
()
{
local
TMPBPDIR
=
$RPMDIR
/BP
mkdir
-p
$TMPBPDIR
rpm
-iv
--define
"_topdir
$TMPBPDIR
"
$1
uni_rpminstall
$1
}
pack_srpm_package
()
{
local
TMPBPDIR
=
$RPMDIR
/BP
LISTNAMES
=
$1
export
RPMTOPDIR
=
$TMPBPDIR
#rm $TMPBPDIR/SOURCES/apache*
pack_src_rpm
}
spec_by_srpm
()
{
local
PKGNAME
=
$1
echo
$(
rpm
-qp
--queryformat
"%{NAME}"
$PKGNAME
)
.spec
}
export
IGNOREGEAR
=
1
TMPBPDIR
=
$RPMDIR
/BP
RPMTOPDIR
=
$TMPBPDIR
for
i
in
`
ls
-1
$RPMDIR
/SRPMS
`
;
do
PKGNAME
=
$RPMDIR
/SRPMS/
$i
echo
"get for
$i
:"
install_srpm_package
$PKGNAME
SPECNAME
=
$RPMDIR
/BP/SPECS/
$(
rpm
-qp
--queryformat
"%{NAME}"
$PKGNAME
)
.spec
SPECNAME
=
$RPMDIR
/BP/SPECS/
$(
spec_by_srpm
$PKGNAME
)
echo
"spec:
$SPECNAME
"
pack_srpm_package
$SPECNAME
echo
Compare
$PKGNAME
$LISTBUILT
rpmdiff
$PKGNAME
$RPMDIR
/BP/SRPMS/
$LISTBUILT
exit
1
done
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