Skip to content

Commit 604887f

Browse files
committedApr 2, 2012
Fix an I/O wrapping problem with checking for broken file assets and storage locations.

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎sbin/findBrokenAssets.pl

+3-3
Original file line numberDiff line numberDiff line change
@@ -253,15 +253,15 @@ sub progress {
253253
my $file_asset = eval { $get_asset->() };
254254
if ( $@ || Exception::Class->caught() ) {
255255
##Do nothing, since it would have been caught above
256-
printf "\r%-68s", "No asset to check";
256+
printf "\r%-68s\n", "No asset to check";
257257
}
258258
elsif (!$file_asset) {
259259
last FILE_ASSET
260260
}
261261
else {
262262
my $storage = $file_asset->getStorageLocation;
263263
if (! $storage) {
264-
printf "\r%-s", "-- No storage location: ".$file_asset->getId." storageId: ".$file_asset->get('storageId');
264+
printf "\r%-s\n", "-- No storage location: ".$file_asset->getId." storageId: ".$file_asset->get('storageId');
265265
}
266266
else {
267267
my $file = $storage->getPath($file_asset->get('filename'));
@@ -276,9 +276,9 @@ sub progress {
276276
print "Could not purge File Asset";
277277
}
278278
}
279+
print "\n";
279280
}
280281
}
281-
print "\n";
282282
}
283283
progress( $file_assets, $count++ ) unless $no_progress;
284284
}

0 commit comments

Comments
 (0)
Please sign in to comment.