Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
66
Commits
1a39e5f5
Commit
1a39e5f5
authored
5 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
update doc
parent
93945c10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/html/66-update.html
+12
-5
12 additions, 5 deletions
doc/html/66-update.html
doc/man/66-update.1.scd
+7
-1
7 additions, 1 deletion
doc/man/66-update.1.scd
src/66/66-update.c
+1
-4
1 addition, 4 deletions
src/66/66-update.c
with
20 additions
and
10 deletions
doc/html/66-update.html
+
12
−
5
View file @
1a39e5f5
...
...
@@ -32,7 +32,7 @@
<h2>
Interface
</h2>
<pre>
66-udpate [ -h ] [ -v
<em>
verbosity
</em>
] [ -c ] [ -l
<em>
live
</em>
]
<em>
tree
</em>
66-udpate [ -h ] [ -v
<em>
verbosity
</em>
] [ -c ] [ -l
<em>
live
</em>
]
[ -d ]
<em>
tree
</em>
</pre>
<p>
If no tree is given, all trees of the owner (root or user) of the process will be processed.
...
...
@@ -68,19 +68,26 @@
<li>
<tt>
-c
</tt>
: enable colorization.
</li>
</ul>
<li>
<tt>
-d
</tt>
: dry run. Performs operation without
modify the current state of the system. All command's output will
be prefixed by "dry run do: " sentence. It's a good idea to
first use this option before performing a real update.
</li>
</ul>
<h2>
Transition process
</h2>
<ul>
<li>
It saves the current state of the tree (current,enabled,...).
</li>
<li>
It determines if the tree is already initialized. In such case, it
makes a copy of the current database on a temporary directory and
switches the database to it.
</li>
<li>
It saves the current state of the tree (current,enabled,...).
</li>
<li>
It destroys the tree with
<tt><a
href=
"66-tree.html"
>
66-tree -R
</a></tt>
command.
</li>
...
...
This diff is collapsed.
Click to expand it.
doc/man/66-update.1.scd
+
7
−
1
View file @
1a39e5f5
...
...
@@ -6,7 +6,7 @@
#
SYNOPSYS
66
-
scandir
[
*-
h
*
]
[
*-
v
*
_verbosity_
]
[
*
-
c
*
]
[
*-
l
*
_live_
]
_tree_
66
-
update
[
*-
h
*
]
[
*-
v
*
_verbosity_
]
[
*
-
c
*
]
[
*-
l
*
_live_
]
[
*-
d
*
]
_tree_
#
DESCRIPTION
...
...
@@ -41,6 +41,12 @@ without needing a reboot.
\
--
livedir
=
_live_
option
to
*
.
/
configure
*
.
Should
be
under
a
writable
filesystem
-
likely
a
RAM
filesystem
.
*-
d
*
dry
run
.
Performs
operation
without
modify
the
current
state
of
the
system
.
All
command
's output will be prefixed by "dry run do: "
sentence. It'
s
a
good
idea
to
first
use
this
option
before
performing
a
real
update
.
If
no
_tree_
is
given
,
all
trees
of
the
owner
(
root
or
user
)
of
the
process
will
be
processed
.
In
the
case
of
user
owned
trees
*
66
-
update
*
must
run
separately
for
each
user
.
...
...
This diff is collapsed.
Click to expand it.
src/66/66-update.c
+
1
−
4
View file @
1a39e5f5
...
...
@@ -222,7 +222,7 @@ int main(int argc, char const *const *argv,char const *const *envp)
if
(
!
satree
.
len
)
{
log_info
(
"No trees exist yet -- Nothing to do"
)
;
log_info
(
DRYRUN
?
drun
:
""
,
"No trees exist yet -- Nothing to do"
)
;
goto
exit
;
}
}
...
...
@@ -364,9 +364,6 @@ int main(int argc, char const *const *argv,char const *const *envp)
if
(
!
tree_copy
(
&
WORKDIR
,
info
.
tree
.
s
,
info
.
treename
.
s
))
log_dieusys_nclean
(
LOG_EXIT_SYS
,
&
cleanup
,
"create tmp working directory"
)
;
// fdir = dir_create_tmp(&WORKDIR,"/tmp",info.treename.s) ;
// if (!fdir) log_dieusys_nclean(LOG_EXIT_SYS,&cleanup,"create temporary directory") ;
auto_strings
(
tmp
,
WORKDIR
.
s
)
;
}
start_parser
(
&
contents
,
&
info
,
&
nbsv
,
DRYRUN
?
1
:
0
)
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment