Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
5b2e9615
Commit
5b2e9615
authored
Dec 21, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copying of mysql databases at copy project
parent
699d30c6
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
161 additions
and
109 deletions
+161
-109
src/exp/com/src/os_linux/pwrp_env.sh
src/exp/com/src/os_linux/pwrp_env.sh
+140
-103
wb/changelog.txt
wb/changelog.txt
+3
-1
wb/lib/wb/src/wb_pvd_pl.cpp
wb/lib/wb/src/wb_pvd_pl.cpp
+18
-5
No files found.
src/exp/com/src/os_linux/pwrp_env.sh
View file @
5b2e9615
This diff is collapsed.
Click to expand it.
wb/changelog.txt
View file @
5b2e9615
...
...
@@ -148,4 +148,6 @@
091104 cs wb Build method for WebGraph objects added.
091208 cs wb PostCreate methods for Channels added to set default number and representation.
091208 cs wb Default name for created objects in wtt fetched from name of previous sibling.
091209 cs wb ConnectAttribute method added to SevHist.
\ No newline at end of file
091209 cs wb ConnectAttribute method added to SevHist.
091218 cs wb Bugfix for next cix and next oix in ced.
091218 cs wb Bugfix in wb_vrepdb:child().
\ No newline at end of file
wb/lib/wb/src/wb_pvd_pl.cpp
View file @
5b2e9615
...
...
@@ -107,6 +107,7 @@ void wb_pvd_pl::writeAttribute( co_procom *pcom, pwr_tOix oix, unsigned int offs
strncpy
(
(
char
*
)((
unsigned
long
)
m_list
[
oix
].
body
+
(
unsigned
long
)
path_offset
),
path
,
sizeof
(
body
.
Path
));
}
m_list
[
oix
].
flags
|=
pl_mFlags_PathModified
;
}
else
if
(
offset
==
(
unsigned
int
)((
char
*
)
&
body
.
Path
-
(
char
*
)
&
body
))
{
m_list
[
oix
].
flags
|=
pl_mFlags_PathModified
;
...
...
@@ -363,7 +364,6 @@ void wb_pvd_pl::process_list( pwr_tStatus *sts)
if
(
m_list
[
i
].
flags
&
procom_obj_mFlags_Deleted
&&
!
(
m_list
[
i
].
flags
&
procom_obj_mFlags_Created
))
{
printf
(
"Project deleted %s
\n
"
,
longname
(
i
));
sprintf
(
cmd
,
"pwrp_env.sh delete project %s noconfirm"
,
body
->
Project
);
...
...
@@ -378,7 +378,7 @@ void wb_pvd_pl::process_list( pwr_tStatus *sts)
else
if
(
m_list
[
i
].
flags
&
procom_obj_mFlags_Created
&&
!
(
m_list
[
i
].
flags
&
procom_obj_mFlags_Deleted
))
{
if
(
strcmp
(
body
->
CopyFrom
,
""
)
==
0
)
{
printf
(
"Project created %s
\n
"
,
longname
(
i
));
printf
(
"
--
Project created %s
\n
"
,
longname
(
i
));
sprintf
(
cmd
,
"wb_pvd_pl.sh create project %s %s %s
\"
%s
\"
\"
%s
\"
"
,
body
->
Project
,
body
->
Version
,
body
->
Path
,
longname
(
m_list
[
i
].
oix
),
...
...
@@ -394,7 +394,6 @@ void wb_pvd_pl::process_list( pwr_tStatus *sts)
else
{
sprintf
(
cmd
,
"pwrp_env.sh copy project %s %s %s %s noconfirm"
,
body
->
CopyFrom
,
body
->
Project
,
body
->
Path
,
longname
(
m_list
[
i
].
oix
));
printf
(
"%s
\n
"
,
cmd
);
csts
=
system
(
cmd
);
if
(
(
csts
>>=
8
)
!=
0
)
{
sprintf
(
msg
,
"%s, in object %s"
,
pwrp_status_to_string
(
csts
),
...
...
@@ -409,11 +408,25 @@ void wb_pvd_pl::process_list( pwr_tStatus *sts)
pwr_sClass_ProjectReg
*
origbody
=
(
pwr_sClass_ProjectReg
*
)
m_list
[
i
].
userdata
;
if
(
m_list
[
i
].
flags
&
pl_mFlags_ProjectModified
)
{
printf
(
"Project modified %s
\n
"
,
longname
(
i
));
printf
(
"-- Project modified %s
\n
"
,
longname
(
i
));
}
if
(
m_list
[
i
].
flags
&
pl_mFlags_ProjectModified
&&
strcmp
(
body
->
Project
,
origbody
->
Project
)
!=
0
)
{
printf
(
"-- Project Name modified %s
\n
"
,
longname
(
i
));
sprintf
(
cmd
,
"pwrp_env.sh modify project %s -n %s"
,
origbody
->
Project
,
body
->
Project
);
csts
=
system
(
cmd
);
if
(
(
csts
>>=
8
)
!=
0
)
{
sprintf
(
msg
,
"%s, in object %s"
,
pwrp_status_to_string
(
csts
),
longname
(
m_list
[
i
].
oix
));
MsgWindow
::
message
(
'E'
,
msg
,
msgw_ePop_Yes
);
return
;
}
}
if
(
m_list
[
i
].
flags
&
pl_mFlags_PathModified
&&
strcmp
(
body
->
Path
,
origbody
->
Path
)
!=
0
)
{
printf
(
"Path modified %s
\n
"
,
longname
(
i
));
printf
(
"
-- Project
Path modified %s
\n
"
,
longname
(
i
));
sprintf
(
cmd
,
"pwrp_env.sh modify project %s -r %s"
,
origbody
->
Project
,
body
->
Path
);
...
...
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