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
8e9dba33
Commit
8e9dba33
authored
Jan 17, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmbph: make use p6 for branch name by default instead M60P
parent
dd3cf65e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
rpmbph
bin/rpmbph
+15
-13
No files found.
bin/rpmbph
View file @
8e9dba33
...
...
@@ -382,26 +382,28 @@ fi
# if run for ALT inside gear repo, just create backported spec
if
[
"
$PKGVENDOR
"
=
"alt"
]
&&
is_gear
$SPECDIR
;
then
[
-f
"
$LISTNAMES
"
]
||
fatal
"Run with one spec inside gear repo"
USEBRANCH
=
$MDISTR
# set branch name
USEBRANCH
=
$(
get_altdistr_version
$MDISTR
)
SPEC
=
$LISTNAMES
BPSPEC
=
$SPEC
.
$USEBRANCH
# support for
without M names like 5.1
USENUMBRANCH
=
$(
get_altdistr_version
$USEBRANCH
)
if
[
"
$
USENUM
BRANCH
"
!=
"
$USEBRANCH
"
]
;
then
if
is_exist_branch
$
USENUM
BRANCH
;
then
echo
"Exists
$
USENUM
BRANCH
branch, will use it instead
$USEBRANCH
"
USEBRANCH
=
$
USENUM
BRANCH
# support for
obsoleted M?? names
OLDBRANCH
=
$MDISTR
if
[
"
$
OLD
BRANCH
"
!=
"
$USEBRANCH
"
]
;
then
if
is_exist_branch
$
OLD
BRANCH
;
then
echo
"Exists
$
OLD
BRANCH
branch, will use it instead
$USEBRANCH
"
USEBRANCH
=
$
OLD
BRANCH
fi
# hack about p5, M50 -> p5
if
[
"
$USEBRANCH
"
=
"M50"
]
&&
is_exist_branch p5
;
then
USENUMBRANCH
=
p5
echo
"Exists
$USENUMBRANCH
branch, will use it instead
$USEBRANCH
"
USEBRANCH
=
$USENUMBRANCH
fi
#
if [ "$USEBRANCH" = "M50" ] && is_exist_branch p5 ; then
#
USENUMBRANCH=p5
#
echo "Exists $USENUMBRANCH branch, will use it instead $USEBRANCH"
#
USEBRANCH=$USENUMBRANCH
#
fi
fi
[
-f
"
$BPSPEC
"
]
&&
fatal
"File
$BPSPEC
is already exists, check it"
[
-f
"
$BPSPEC
"
]
&&
fatal
"File
$BPSPEC
is already exists, check it
and remove
"
CURBRANCH
=
$(
get_current_branch
)
...
...
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