Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
forge001
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gerhard Gonter
forge001
Commits
72556185
Commit
72556185
authored
8 years ago
by
Gerhard Gonter
Browse files
Options
Downloads
Patches
Plain Diff
cleaned up status messages
parent
42f66861
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
textarchive/vlib001.pl
+9
-7
9 additions, 7 deletions
textarchive/vlib001.pl
with
9 additions
and
7 deletions
textarchive/vlib001.pl
+
9
−
7
View file @
72556185
...
@@ -270,7 +270,7 @@ sub refresh_md5cat
...
@@ -270,7 +270,7 @@ sub refresh_md5cat
$cnt_updated
++
if
(
@upd
);
$cnt_updated
++
if
(
@upd
);
}
}
close
(
CAT
);
close
(
CAT
);
printf
("
%
6
d files processed; %
6
d files updated
\n
",
$cnt_processed
,
$cnt_updated
);
printf
("
%
9
d files processed; %
9
d files updated
\n
",
$cnt_processed
,
$cnt_updated
);
}
}
sub
refresh_internal
sub
refresh_internal
...
@@ -316,10 +316,11 @@ sub refresh_internal
...
@@ -316,10 +316,11 @@ sub refresh_internal
if
(
defined
(
$toc
))
if
(
defined
(
$toc
))
{
{
# print "toc: ", Dumper ($toc);
# print "toc: ", Dumper ($toc);
printf
("
%6d items to be processed
\n
",
scalar
@$toc
);
printf
("
%9d items to be processed
\n
",
scalar
@$toc
);
print
"
\n
pass 1
\n
";
foreach
my
$x
(
@$toc
)
foreach
my
$x
(
@$toc
)
{
{
printf
("
%
6
d items processed
\n
",
$cnt
)
if
((
++
$cnt
%
100
)
==
0
);
printf
("
%
9
d items processed
\n
",
$cnt
)
if
((
++
$cnt
%
100
00
)
==
0
);
# print __LINE__, " k=[$k]\n";
# print __LINE__, " k=[$k]\n";
my
$k
=
$x
->
{'
key
'};
my
$k
=
$x
->
{'
key
'};
my
$p
=
$x
->
{'
path
'};
my
$p
=
$x
->
{'
path
'};
...
@@ -358,16 +359,17 @@ sub refresh_internal
...
@@ -358,16 +359,17 @@ sub refresh_internal
# print "fl: ", Dumper ($fl);
# print "fl: ", Dumper ($fl);
}
}
print
__LINE__
,
"
check_new_files
\n
";
# print __LINE__, " check_new_files\n";
print
"
\n
pass 2
\n
";
my
$new_files
=
$md5cat
->
check_new_files
(
$limit
);
my
$new_files
=
$md5cat
->
check_new_files
(
$limit
);
# print "new_files: ", Dumper ($new_files);
# print "new_files: ", Dumper ($new_files);
print
__LINE__
,
"
integrate_md5_sums
\n
";
#
print __LINE__, " integrate_md5_sums\n";
$md5cat
->
integrate_md5_sums
(
$new_files
);
$md5cat
->
integrate_md5_sums
(
$new_files
);
# $md5cat->save_catalog (); # TODO: if save_catalog flag is true!
# $md5cat->save_catalog (); # TODO: if save_catalog flag is true!
# ZZZ
# ZZZ
# update the Object registry with new items
# update the Object registry with new items
printf
("
%
6
d new items to be processed
\n
",
scalar
@$new_files
);
printf
("
%
9
d new items to be processed
\n
",
scalar
@$new_files
);
foreach
my
$nf
(
@$new_files
)
foreach
my
$nf
(
@$new_files
)
{
{
my
(
$md5
,
$path
,
$size
,
$mtime
)
=
@$nf
;
my
(
$md5
,
$path
,
$size
,
$mtime
)
=
@$nf
;
...
@@ -419,7 +421,7 @@ TODO: only drop the thing when it is in the right subdirectory!
...
@@ -419,7 +421,7 @@ TODO: only drop the thing when it is in the right subdirectory!
$objreg
->
remove_from_store
(
$store
,
\
@drop
);
$objreg
->
remove_from_store
(
$store
,
\
@drop
);
}
}
printf
("
files: %
6
d processed; %
6
d updated; %
6
d (%d) dropped
\n
",
printf
("
files: %
9
d processed; %
9
d updated; %
9
d (%d) dropped
\n
",
$cnt_processed
,
$cnt_updated
,
$cnt_dropped
,
scalar
(
@drop
));
$cnt_processed
,
$cnt_updated
,
$cnt_dropped
,
scalar
(
@drop
));
}
}
...
...
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