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
05ccdab7
Commit
05ccdab7
authored
Sep 24, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove etersoft-build-utils using, drop out rpm query
parent
ec0c3c0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
create_repo_from_list.sh
tools/create_repo_from_list.sh
+9
-6
No files found.
tools/create_repo_from_list.sh
View file @
05ccdab7
...
...
@@ -8,8 +8,8 @@
# need packages to be installed
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod rpm
#
. `dirname $0`/../share/eterbuild/functions/common
#
load_mod rpm
ORIGREPO
=
/var/ftp/pub/ALTLinux/5.0
DESTREPO
=
/var/ftp/pub/Etersoft/LINUX@Etersoft/branch/builder50
...
...
@@ -29,12 +29,15 @@ fi
for
i
in
$PKGLIST
;
do
#PKGNAME=$(querypackage $i "" "%{name}-%{version}-%{release}")
#PKGARCH=$(querypackage $i %{arch}")
PKGNAME
=
$i
# TODO: do package try instead query info
PKGARCH
=
$(
querypackage
$i
""
"%{arch}"
)
REALFILE
=
$ORIGREPO
/
$PKGARCH
/RPMS.classic/
$PKGNAME
.
$PKGARCH
.rpm
PKGARCH
=
""
for
i
in
$ARCHLIST
;
do
REALFILE
=
$ORIGREPO
/
$i
/RPMS.classic/
$PKGNAME
.
$i
.rpm
test
-e
"
$REALFILE
"
&&
{
PKGARCH
=
$i
;
break
;
}
done
#echo "$PKGNAME, real package: $REALFILE"
test
-e
"
$REALFILE
"
||
{
echo
"ERROR:
$REALFILE
for
$PKGNAME
is missed"
>
&2
;
continue
;
}
test
-e
"
$REALFILE
"
||
{
echo
"ERROR:
$REALFILE
for
$PKGNAME
is missed"
>
&2
;
continue
;
}
ln
$REALFILE
$DESTREPO
/
$PKGARCH
/RPMS.
$RPMSEXT
/
$(
basename
$REALFILE
)
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