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
a491d350
Commit
a491d350
authored
Jul 21, 2008
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some mistakes
parent
c9c4a342
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
myhsh
bin/myhsh
+1
-9
rpmgs
bin/rpmgs
+1
-0
common
share/eterbuild/functions/common
+1
-1
test_get_bin.sh
tests/test_get_bin.sh
+7
-0
No files found.
bin/myhsh
View file @
a491d350
...
...
@@ -137,21 +137,13 @@ print_list $LISTBUILTSH
echo
# build binary package list
function
get_binpkg_list
()
{
PKGDIR
=
$HASHERDIR
/repo/i586/RPMS.hasher
find
"
$PKGDIR
"
!
-name
'*\.src\.rpm'
-name
'*\.rpm'
-execdir
\
rpmquery
-p
--qf
=
'%{sourcerpm}\t%{name}-%{version}-%{release}.%{arch}.rpm\n'
"{}"
\;
\
|
grep
"^
$1
[[:space:]].*"
|
cut
-f2
| xargs
-n1
-I
"{}"
echo
"
$PKGDIR
/{} "
}
if
[
"
$RESULT
"
=
"0"
-a
-n
"
$TESTINSTALL
"
]
;
then
# test install (only for last package in list)
# some key for build hasher from scratch
echog
"Find binary packages for
$LASTPACKAGE
..."
BINPACKAGES
=
`
get_binpkg_list
$HASHERDIR
/repo/
$DEFAULTARCH
/RPMS.hasher
$LASTPACKAGE
`
test
-n
"
$BINPACKAGES
"
||
fatal
"Can't find binary packages for
$LASTPACKAGE
in
`
ls
-l
$HASHERDIR
/repo/
$DEFAULTARCH
/RPMS.hasher
`
"
echo
"List:
$BINPACKAGES
"
echo
loginhsh
-t
-i
$MENVARG
$BINPACKAGES
||
exit
1
...
...
bin/rpmgs
View file @
a491d350
...
...
@@ -14,6 +14,7 @@
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
.
$ETERBUILDDIR
/functions/rpm
WEXT
=
""
GETSOURCE
=
""
...
...
share/eterbuild/functions/common
View file @
a491d350
...
...
@@ -75,7 +75,7 @@ TARGET=`distr_vendor -p`
VENDOR
=
`
distr_vendor
-s
`
if
[
"
$VENDOR
"
=
"alt"
]
&&
[
-n
"
$MENV
"
]
;
then
APTCONF
=
$
APTCONF
.
$MENV
APTCONF
=
$
{
APTCONF
/.SS
}
.
$MENV
echog
"Target ALT Linux system:
`
get_distr_version
$MENV
`
, use
\$
APTCONF"
MENVARG
=
"-
$MENV
"
...
...
tests/test_get_bin.sh
0 → 100755
View file @
a491d350
#!/bin/sh
.
`
dirname
$0
`
/../share/eterbuild/functions/common
.
$ETERBUILDDIR
/functions/rpm
HASHERDIR
=
$HASHERDIR
-SS
get_binpkg_list
$HASHERDIR
/repo/
$DEFAULTARCH
/RPMS.hasher asymptote-1.43-alt1.src.rpm
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