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
81bc57b6
Commit
81bc57b6
authored
May 22, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repl: small fixes
parent
68db61bd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
repl
share/eterbuild/functions/repl
+4
-2
test_repl_find.sh
tests/test_repl_find.sh
+6
-4
No files found.
share/eterbuild/functions/repl
View file @
81bc57b6
...
...
@@ -94,7 +94,7 @@ internal_repl_list()
# sure we use our version firstly
echo
$FINDPKG
# Hack for sort by last numbers: sort -n -t . -k 3
(
ls
-1
$
PKGREPLBASE
/pkgrepl
.
$PKGVENDOR
*
$ARCHEXT
2>/dev/null |
\
(
ls
-1
$
REPLBASE
.
$PKGVENDOR
*
$ARCHEXT
2>/dev/null |
\
(
test
-n
"
$ARCHEXT
"
&&
grep
-v
"
$PKGVENDOR$ARCHEXT
\$
"
||
grep
-v
"x86_64"
)
;
echo
$FINDPKG
)
|
\
sort
-u
|
sort
-n
-t
.
-k
3 |
grep
"^
$FINDPKG
\$
"
-B1000
|
sort
-r
-n
-t
.
-k
3
echo
$REPLBASE
.
$PKGVENDOR$ARCHEXT
...
...
@@ -113,6 +113,8 @@ print_replbased_list()
internal_repl_list
$REPLBASE
""
|
uniq
}
PKGREPLBASE
=
$ETERBUILDDIR
/pkgrepl
# TODO: list in alph. order and use if <= then our version
print_pkgrepl_list
()
{
...
...
@@ -121,7 +123,7 @@ print_pkgrepl_list()
print_grprepl_list
()
{
print_replbased_list
$
PKGREPLBASE
/../grprepl/grprepl
print_replbased_list
$
(
realpath
-f
$PKGREPLBASE
/../grprepl/grprepl
)
}
...
...
tests/test_repl_find.sh
View file @
81bc57b6
...
...
@@ -49,7 +49,7 @@ check_repl()
check
$1
"
`
print_replace
$1
`
"
$2
}
echo
"
Correct replacement checking
for
$PKGVENDOR
/
$DISTRVERSION
(target
$PKGFORMAT
):"
echo
"
Replacement files
for
$PKGVENDOR
/
$DISTRVERSION
(target
$PKGFORMAT
):"
check_repl rpm-build-compat rpm-build-altlinux-compat
check_repl libusb-devel libusb-devel
...
...
@@ -58,7 +58,7 @@ PKGVENDOR=ubuntu
PKGFORMAT
=
deb
DISTRVERSION
=
11.04
echo
"
Correct replacement checking
for
$PKGVENDOR
/
$DISTRVERSION
(target
$PKGFORMAT
):"
echo
"
Replacement files
for
$PKGVENDOR
/
$DISTRVERSION
(target
$PKGFORMAT
):"
print_pkgrepl_list
...
...
@@ -74,6 +74,8 @@ PKGFORMAT=rpm
#( ls -1 $PKGREPLBASE/pkgrepl.$VENDOR* | grep -v x86_64 ; echo $FINDPKG ) | sort -u | grep "^$FINDPKG\$" -B1000 | sort -r
echo
echo
"
Correct replacement checking
for
$PKGVENDOR
/
$DISTRVERSION
(target
$PKGFORMAT
):"
echo
"
Replacement files
for
$PKGVENDOR
/
$DISTRVERSION
(target
$PKGFORMAT
):"
echo
"Package:"
print_pkgrepl_list
echo
"Group:"
print_grprepl_list
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