Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
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
Vladislav
PortWINE
Commits
bda6307d
Commit
bda6307d
authored
Jul 14, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added PW_CHANGE_BRANCH
parent
6694415f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
functions_helper
data_from_portwine/scripts/functions_helper
+6
-2
No files found.
data_from_portwine/scripts/functions_helper
View file @
bda6307d
...
...
@@ -1353,7 +1353,7 @@ pw_init_db () {
return
0
}
#
SCRIPTS UPDATE
#
GUI UPDATE SCRIPTS
pw_port_update
()
{
case
"
$BRANCH
"
in
master|stable
)
...
...
@@ -1399,8 +1399,10 @@ pw_port_update () {
then
local
pw_yad
=
"yad"
else
local
pw_yad
=
"not_found"
fi
if
[[
"
${
pw_yad
}
"
==
"not_found"
]]
;
then
if
[[
"
${
pw_yad
}
"
==
"not_found"
]]
\
||
[[
"
$PW_CHANGE_BRANCH
"
==
"1"
]]
;
then
xcsd
=
"
$(
gettext
"UPDATING NOW"
)
"
unset
PW_CHANGE_BRANCH
else
curl
-s
--list-only
"
${
URL_FOR_CHANGELOG
}
/
${
PW_CHANGELOG_FILE
}
"
|
tee
"
${
PORT_WINE_TMP_PATH
}
/curent_var_ver"
CHANGLOG_NEWS
=
$(
sed
"/Scripts version
${
scripts_install_ver
}
/,
$
d"
"
${
PORT_WINE_TMP_PATH
}
/curent_var_ver"
|
sed
'1,/---/ d'
)
...
...
@@ -5035,6 +5037,8 @@ change_branch () {
yad_info
"
$(
gettext
"Branch changed to:"
)
<b>DEVEL</b>"
else
sed
-i
's/="devel"/="master"/g'
"
$USER_CONF
"
echo
"2024"
>
"
${
PORT_WINE_TMP_PATH
}
/scripts_ver"
export
PW_CHANGE_BRANCH
=
"1"
yad_info
"
$(
gettext
"Branch changed to:"
)
<b>STABLE</b>"
fi
print_info
"Restarting PP for change 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