chiark / gitweb /
support --always-reprocess
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 25 Jan 2012 23:22:39 +0000 (23:22 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 25 Jan 2012 23:22:39 +0000 (23:22 +0000)
debian/changelog
update-xfonts-traditional
update-xfonts-traditional.8

index ed7308cc62a755ec26605373675cbfd4bf20ed95..b4e0041dd54217eaf9c5ee7153fd402f3743b2a6 100644 (file)
@@ -4,6 +4,7 @@ xfonts-traditional (1.3) unstable; urgency=low
   * Process multiple fonts in parallel.
   * General improvements to handling of errors and unprocessed fonts.
   * Fix typo in short Description.  Closes: #657397.
+  * New --always-reprocess option to update-xfonts-traditional.
 
  --
 
index 63e9040d4a5572a8e14ba842526a48644c0a0621..895be6d5671bcda3db31455eccac0c2da3373572 100755 (executable)
@@ -24,6 +24,7 @@ our $reportfh;
 our $foundryinfo;
 our %props;
 our $tolerate_bad_fonts=1;
+our $always_reprocess;
 our $wanted_parallel;
 
 sub reportloaded {
@@ -287,14 +288,17 @@ sub processfontdir ($) {
        return;
     }
     my $changed = 0;
-    my $olddone = do "$fontdir/$donefile";
-    if (!$olddone) {
-       die "$fontdir $! $@ " unless $!==&ENOENT;
-    } elsif ($olddone->{''} ne $foundryinfo) {
-       our $repro_reported;
-       print $reportfh "reprocessing fonts (rules updated)\n" or die $!
-           unless $repro_reported++;
-       $olddone = undef;
+    my $olddone;
+    if (!$always_reprocess) {
+       $olddone = do "$fontdir/$donefile";
+       if (!$olddone) {
+           die "$fontdir $! $@ " unless $!==&ENOENT;
+       } elsif ($olddone->{''} ne $foundryinfo) {
+           our $repro_reported;
+           print $reportfh "reprocessing fonts (rules updated)\n" or die $!
+               unless $repro_reported++;
+           $olddone = undef;
+       }
     }
     if (!$olddone) {
        $olddone = { };
@@ -453,6 +457,7 @@ our (@options)=(
     'share-dir=s' => \$sharedir,
     'verbose|v+' => \$verbose,
     'j|parallel=i' => \$wanted_parallel,
+    'always-reprocess!' => \$always_reprocess,
     'tolerate-bad-fonts!' => \$tolerate_bad_fonts,
     );
 
index 5da104c1c1ff05a226974cb8014ef54d88ebd253..420d55f6c6a0e856f1d1e77d4deb2aa71e644e8e 100644 (file)
@@ -61,6 +61,10 @@ Use up to
 .I cpus
 cores for processing fonts.  The default is all the cpus available.
 .TP
+\fB--always-reprocess
+When scanning font directories, always reprocess all the fonts,
+regardless of whether we think they have been done already.
+.TP
 \fB--no-tolerate-bad-fonts
 Treat bad input fonts (eg, ones for which pcf2bdf crashes, or ones
 with other problems) as a fatal error.  Normally they just produce