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
df96b29c
Commit
df96b29c
authored
Jul 15, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
etersoft: replace version only in last or unstable component
parent
0f7b408d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
etersoft
share/eterbuild/functions/etersoft
+12
-5
No files found.
share/eterbuild/functions/etersoft
View file @
df96b29c
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# return local path to publish srpm
# return local path to publish srpm
get_etersoft_srpm_path
()
get_etersoft_srpm_path
()
{
{
local
SOURCE
local
SOURCE
BSOURCE BNSOURCE
local
ALPHA
=
$2
local
ALPHA
=
$2
local
SOURCEFTP
=
$(
eval_spec
$1
| get_var
"Source"
)
local
SOURCEFTP
=
$(
eval_spec
$1
| get_var
"Source"
)
...
@@ -16,6 +16,8 @@ get_etersoft_srpm_path()
...
@@ -16,6 +16,8 @@ get_etersoft_srpm_path()
fi
fi
[
-n
"
$SOURCEFTP
"
]
||
fatal
"Can't get Source from spec"
[
-n
"
$SOURCEFTP
"
]
||
fatal
"Can't get Source from spec"
# drop tarball name
SOURCEFTP
=
$(
dirname
"
$SOURCEFTP
"
)
SOURCEFTP
=
$(
dirname
"
$SOURCEFTP
"
)
# FIXME: pass foreign path, needs to handle proto:// separately from ftp.eter:/path
# FIXME: pass foreign path, needs to handle proto:// separately from ftp.eter:/path
...
@@ -33,8 +35,11 @@ get_etersoft_srpm_path()
...
@@ -33,8 +35,11 @@ get_etersoft_srpm_path()
# rewrite V.E.R./sources with $ALPHA/sources
# rewrite V.E.R./sources with $ALPHA/sources
if
[
-n
"
$ALPHA
"
]
;
then
if
[
-n
"
$ALPHA
"
]
;
then
SOURCE
=
$(
dirname
$SOURCE
)
BSOURCE
=
$(
dirname
$SOURCE
)
SOURCE
=
$(
dirname
$SOURCE
)
/
$ALPHA
/sources
BNSOURCE
=
$(
basename
$BSOURCE
)
if
[
"
$BSOURCE
"
=
"last"
]
||
[
"
$BSOURCE
"
=
"unstable"
]
;
then
SOURCE
=
$(
dirname
$SOURCE
)
/
$ALPHA
/sources
fi
fi
fi
echo
$SOURCE
echo
$SOURCE
...
@@ -46,6 +51,8 @@ set_last_link()
...
@@ -46,6 +51,8 @@ set_last_link()
echo
$1
|
grep
-q
/testing/sources
&&
return
echo
$1
|
grep
-q
/testing/sources
&&
return
# do not change last if unstable publish
# do not change last if unstable publish
echo
$1
|
grep
-q
/unstable/sources
&&
return
echo
$1
|
grep
-q
/unstable/sources
&&
return
rm
-f
$1
/../last
# do not update last link if it is not exists
ln
-s
$2
$1
/../last
# test -L "$1/../last" || return
rm
-f
"
$1
/../last"
ln
-s
"
$2
"
"
$1
/../last"
}
}
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