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
6576fb4e
Commit
6576fb4e
authored
Jan 31, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmgp: fix src.rpm import, allow to use several files
parent
02b967ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
rpmgp
bin/rpmgp
+11
-4
No files found.
bin/rpmgp
View file @
6576fb4e
...
...
@@ -236,9 +236,15 @@ fi
if
[
-n
"
$MIGRATEGEAR
"
]
;
then
parse_cmd_pre
"
$@
"
pack_src_rpm
$LISTRPMARGS
for
PKGNAME
in
$LISTBUILT
;
do
echo
"Create gear repo"
for
INFILE
in
$LISTNAMES
;
do
# call for each file due generated BASENAME
LISTNAMES
=
$INFILE
pack_src_rpm
$INFILE
$LISTRPMARGS
PKGNAME
=
"
$LISTBUILT
"
if
[
-z
"
$BASENAME
"
]
;
then
echo
"Can't get basename for
$PKGNAME
, skipping"
continue
fi
echo
"Create gear repo
$BASENAME
from
$PKGNAME
"
GITALT
=
~/Projects/git-alt
GEARDIR
=
$GITALT
/
$BASENAME
test
-d
"
$GEARDIR
"
&&
fatal
"repo
$GEARDIR
already exits"
...
...
@@ -246,7 +252,8 @@ if [ -n "$MIGRATEGEAR" ] ; then
cd
$GEARDIR
||
fatal
"can't cd to
$GEARDIR
"
git init-db
||
fatal
"can't init db"
gear-srpmimport
$PKGNAME
||
fatal
"can't import srpm
$PKGNAME
"
rm
-vf
$PKGNAME
# remove src.rpm only if it was generated
[
-z
${
INFILE
/*rpm/
}
]
||
rm
-vf
$PKGNAME
done
exit
0
fi
...
...
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