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
141d85a1
Commit
141d85a1
authored
8 years ago
by
Gerhard Gonter
Browse files
Options
Downloads
Patches
Plain Diff
format changes
parent
b3f002dd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
textarchive/lib/md5cat.pm
+6
-6
6 additions, 6 deletions
textarchive/lib/md5cat.pm
textarchive/vlib001.pl
+8
-2
8 additions, 2 deletions
textarchive/vlib001.pl
with
14 additions
and
8 deletions
textarchive/lib/md5cat.pm
+
6
−
6
View file @
141d85a1
#
# $Id: md5cat.pm,v 1.
9
201
6
/0
8
/0
2
0
8
:2
4:55
gonter Exp $
# $Id: md5cat.pm,v 1.
11
201
7
/0
1
/0
3
0
6
:2
1:43
gonter Exp $
#
=head1 NAME
...
...
@@ -353,8 +353,8 @@ sub check_new_files
close
(
FO
);
}
push
(
@
main::
REPORT
,
sprintf
("
checked %s: %
8
d (%s)
",
$md5cat
->
{'
chksum_pgm
'},
scalar
(
@tmp_2chk
)));
push
(
@
main::
REPORT
,
sprintf
("
checked openssl: %
8
d (%s)
",
$QUEUE_openssl
));
push
(
@
main::
REPORT
,
sprintf
("
checked %s: %
10
d (%s)
",
$md5cat
->
{'
chksum_pgm
'},
scalar
(
@tmp_2chk
)));
push
(
@
main::
REPORT
,
sprintf
("
checked openssl: %
10
d (%s)
",
$QUEUE_openssl
));
(
wantarray
)
?
@res
:
\
@res
;
}
...
...
@@ -523,8 +523,8 @@ this may be obsolete and shold be removed
}
close
(
FI
);
push
(
@
main::
REPORT
,
sprintf
("
retained: %
8
d (%s)
",
$cnt_retained
,
$list
));
push
(
@
main::
REPORT
,
sprintf
("
dropped: %
8
d (%s)
",
$cnt_dropped
,
$list
));
push
(
@
main::
REPORT
,
sprintf
("
retained: %
10
d (%s)
",
$cnt_retained
,
$list
));
push
(
@
main::
REPORT
,
sprintf
("
dropped: %
10
d (%s)
",
$cnt_dropped
,
$list
));
return
$rc
;
}
...
...
@@ -564,7 +564,7 @@ sub digest_md5_list
}
my
$md5
=
Digest::MD5::File::
file_md5_hex
(
$f
);
printf
("
%
9
d %s %s
\n
",
$st
[
7
],
$md5
,
$f
);
printf
("
%
10
d %s %s
\n
",
$st
[
7
],
$md5
,
$f
);
push
(
@res
,
[
$md5
,
$f
,
$st
[
7
],
$st
[
9
]
]);
$cnt
++
;
...
...
This diff is collapsed.
Click to expand it.
textarchive/vlib001.pl
+
8
−
2
View file @
141d85a1
...
...
@@ -60,6 +60,7 @@ use TA::ObjReg;
# use TA::Hasher;
# use TA::Util;
use
md5cat
;
use
Util::
ts
qw(ts_ISO)
;
my
@PAR
=
();
my
$project
;
...
...
@@ -401,16 +402,21 @@ sub refresh_internal
# ZZZ
# update the Object registry with new items
printf
("
%9d new items to be processed
\n
",
scalar
@$new_files
);
my
$cnt_total
=
scalar
@$new_files
;
my
$cnt_done
=
0
;
printf
("
%9d new items to be processed
\n
",
$cnt_total
);
foreach
my
$nf
(
@$new_files
)
{
my
(
$md5
,
$path
,
$size
,
$mtime
)
=
@$nf
;
# print "md5=[$md5] size=[$size] path=[$path]\n";
$cnt_processed
++
;
$cnt_processed
++
;
# NOTE: one counter for several processing steps??
my
@upd
=
process_file
(
$md5
,
$path
,
$size
);
$cnt_updated
++
if
(
@upd
);
printf
("
%s done %d of %d, updated %d
\n
",
ts_ISO
(),
$cnt_done
,
$cnt_total
,
$cnt_updated
)
if
((
++
$cnt_done
%
100
)
==
0
);
}
printf
("
%s done %d of %d, updated %d
\n
",
ts_ISO
(),
$cnt_done
,
$cnt_total
,
$cnt_updated
);
# get filelist again after reintegration to find keys which are no longer in the catalog
$fl
=
$md5cat
->
{'
FLIST
'};
...
...
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