Bug#197153: update-fonts-* should skip packages that are removed but not purged

2003-06-12 Thread Branden Robinson
retitle 197153 xutils: update-fonts-alias should skip removed-but-not-purged 
packages
tag 197153 + moreinfo
thanks

On Thu, Jun 12, 2003 at 06:28:32PM +0300, Anton Zinoviev wrote:
> Package: xutils
> Severity: normal
> 
> When a font package is removed but not purged its configuration files
> stay in /etc/X11/fonts and cause false fonts.alias and fonts.scale
> items.  A patches for update-fonts-scale and update-fonts-alias are
> attached.

You do not appear to have looked at update-fonts-scale in XFree86
4.2.1-7 or later.

  * debian/local/update-fonts-scale: only write fonts to the .scale file that
actually exist, so that removed-but-not-purged scalable font packages do
not register nonexistent fonts; this has the desirable side effect that
the count at the top of the file is also omitted (based on a patch by
Roland Rosenfeld) (Closes: #193185)

Please update your suggested patch accordingly.  Otherwise, I'll get to
updating update-fonts-alias when I can.

-- 
G. Branden Robinson|
Debian GNU/Linux   |   // // //  / /
[EMAIL PROTECTED] |   EI 'AANIIGOO 'AHOOT'E
http://people.debian.org/~branden/ |


pgpT7SJOSpewV.pgp
Description: PGP signature


Processed: Re: Bug#197153: update-fonts-* should skip packages that are removed but not purged

2003-06-12 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> retitle 197153 xutils: update-fonts-alias should skip removed-but-not-purged 
> packages
Bug#197153: update-fonts-* should skip packages that are removed but not purged
Changed Bug title.

> tag 197153 + moreinfo
Bug#197153: xutils: update-fonts-alias should skip removed-but-not-purged 
packages
There were no tags set.
Tags added: moreinfo

> thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)




Bug#197153: update-fonts-* should skip packages that are removed but not purged

2003-06-12 Thread Branden Robinson
retitle 197153 xutils: update-fonts-alias should skip removed-but-not-purged packages
tag 197153 + moreinfo
thanks

On Thu, Jun 12, 2003 at 06:28:32PM +0300, Anton Zinoviev wrote:
> Package: xutils
> Severity: normal
> 
> When a font package is removed but not purged its configuration files
> stay in /etc/X11/fonts and cause false fonts.alias and fonts.scale
> items.  A patches for update-fonts-scale and update-fonts-alias are
> attached.

You do not appear to have looked at update-fonts-scale in XFree86
4.2.1-7 or later.

  * debian/local/update-fonts-scale: only write fonts to the .scale file that
actually exist, so that removed-but-not-purged scalable font packages do
not register nonexistent fonts; this has the desirable side effect that
the count at the top of the file is also omitted (based on a patch by
Roland Rosenfeld) (Closes: #193185)

Please update your suggested patch accordingly.  Otherwise, I'll get to
updating update-fonts-alias when I can.

-- 
G. Branden Robinson|
Debian GNU/Linux   |   // // //  / /
[EMAIL PROTECTED] |   EI 'AANIIGOO 'AHOOT'E
http://people.debian.org/~branden/ |


pgp0.pgp
Description: PGP signature


Processed: Re: Bug#197153: update-fonts-* should skip packages that are removed but not purged

2003-06-12 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

> retitle 197153 xutils: update-fonts-alias should skip removed-but-not-purged packages
Bug#197153: update-fonts-* should skip packages that are removed but not purged
Changed Bug title.

> tag 197153 + moreinfo
Bug#197153: xutils: update-fonts-alias should skip removed-but-not-purged packages
There were no tags set.
Tags added: moreinfo

> thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#197153: update-fonts-* should skip packages that are removed but not purged

2003-06-12 Thread Anton Zinoviev
Package: xutils
Severity: normal

When a font package is removed but not purged its configuration files
stay in /etc/X11/fonts and cause false fonts.alias and fonts.scale
items.  A patches for update-fonts-scale and update-fonts-alias are
attached.

Anton Zinoviev


--- update-fonts-scale.old  2003-06-08 15:29:51.0 +0300
+++ update-fonts-scale.new  2003-06-08 16:18:23.0 +0300
@@ -52,12 +52,19 @@
 fi
   done
   if [ -n "$VALID" ]; then
+> $XDIR/fonts.scale.update-tmp
 # are there any files to process?
 if [ "$(echo $ETCDIR/*.scale)" != "$ETCDIR/*.scale" ]; then
   for file in $ETCDIR/*.scale; do
-# omit count at top of file
-tail +2 $file >> $XDIR/fonts.scale.update-tmp
+package=`basename $file .scale`
+if [ -e /usr/share/doc/$package ]; then
+  # omit count at top of file
+  tail +2 $file >> $XDIR/fonts.scale.update-tmp
+fi
   done
+fi
+# Was there a processed file?
+if [ -s $XDIR/fonts.scale.update-tmp ]; then
   # write new scale file in case we are interrupted
   # write new count to top of file
   # cat and pipe to wc so wc doesn't spew the filename
@@ -66,7 +73,8 @@
   mv $XDIR/fonts.scale.update-new $XDIR/fonts.scale
   rm $XDIR/fonts.scale.update-tmp
 else
-  # no files to process, remove the one in the font dir
+  # no files processed
+  rm -f $XDIR/fonts.scale.update-tmp
   rm -f $XDIR/fonts.scale
   # remove the font dir if it is empty
   rmdir $XDIR > /dev/null 2>&1 || true
--- update-fonts-alias.old  2003-06-08 15:30:12.0 +0300
+++ update-fonts-alias.new  2003-06-08 16:18:07.0 +0300
@@ -52,20 +52,30 @@
 fi
   done
   if [ -n "$VALID" ]; then
+> $XDIR/fonts.alias.update-tmp 
 # are there any files to process?
 if [ "$(echo $ETCDIR/*.alias)" != "$ETCDIR/*.alias" ]; then
+  for file in $ETCDIR/*.alias; do
+package=`basename $file .alias`
+if [ -e /usr/share/doc/$package ]; then
+  echo "!! $file" >> $XDIR/fonts.alias.update-tmp
+  cat $file >> $XDIR/fonts.alias.update-tmp
+fi
+  done
+fi
+# Was there a processed file?
+if [ -s $XDIR/fonts.alias.update-tmp ]; then
   # write new alias file in case we are interrupted
   cat > $XDIR/fonts.alias.update-new << EOF
 !! fonts.alias -- automatically generated file.  DO NOT EDIT.
 !! To modify, see update-fonts-alias(8).
 EOF
-  for file in $ETCDIR/*.alias; do
-echo "!! $file" >> $XDIR/fonts.alias.update-new
-cat $file >> $XDIR/fonts.alias.update-new
-  done
+  cat $XDIR/fonts.alias.update-tmp >> $XDIR/fonts.alias.update-new
   mv $XDIR/fonts.alias.update-new $XDIR/fonts.alias
+  rm $XDIR/fonts.alias.update-tmp
 else
-  # no files to process, remove the one in the font dir
+  # no files processed
+  rm -f $XDIR/fonts.alias.update-tmp
   rm -f $XDIR/fonts.alias
   # remove the font dir if it is empty
   rmdir $XDIR > /dev/null 2>&1 || true


Bug#197153: update-fonts-* should skip packages that are removed but not purged

2003-06-12 Thread Anton Zinoviev
Package: xutils
Severity: normal

When a font package is removed but not purged its configuration files
stay in /etc/X11/fonts and cause false fonts.alias and fonts.scale
items.  A patches for update-fonts-scale and update-fonts-alias are
attached.

Anton Zinoviev


--- update-fonts-scale.old  2003-06-08 15:29:51.0 +0300
+++ update-fonts-scale.new  2003-06-08 16:18:23.0 +0300
@@ -52,12 +52,19 @@
 fi
   done
   if [ -n "$VALID" ]; then
+> $XDIR/fonts.scale.update-tmp
 # are there any files to process?
 if [ "$(echo $ETCDIR/*.scale)" != "$ETCDIR/*.scale" ]; then
   for file in $ETCDIR/*.scale; do
-# omit count at top of file
-tail +2 $file >> $XDIR/fonts.scale.update-tmp
+package=`basename $file .scale`
+if [ -e /usr/share/doc/$package ]; then
+  # omit count at top of file
+  tail +2 $file >> $XDIR/fonts.scale.update-tmp
+fi
   done
+fi
+# Was there a processed file?
+if [ -s $XDIR/fonts.scale.update-tmp ]; then
   # write new scale file in case we are interrupted
   # write new count to top of file
   # cat and pipe to wc so wc doesn't spew the filename
@@ -66,7 +73,8 @@
   mv $XDIR/fonts.scale.update-new $XDIR/fonts.scale
   rm $XDIR/fonts.scale.update-tmp
 else
-  # no files to process, remove the one in the font dir
+  # no files processed
+  rm -f $XDIR/fonts.scale.update-tmp
   rm -f $XDIR/fonts.scale
   # remove the font dir if it is empty
   rmdir $XDIR > /dev/null 2>&1 || true
--- update-fonts-alias.old  2003-06-08 15:30:12.0 +0300
+++ update-fonts-alias.new  2003-06-08 16:18:07.0 +0300
@@ -52,20 +52,30 @@
 fi
   done
   if [ -n "$VALID" ]; then
+> $XDIR/fonts.alias.update-tmp 
 # are there any files to process?
 if [ "$(echo $ETCDIR/*.alias)" != "$ETCDIR/*.alias" ]; then
+  for file in $ETCDIR/*.alias; do
+package=`basename $file .alias`
+if [ -e /usr/share/doc/$package ]; then
+  echo "!! $file" >> $XDIR/fonts.alias.update-tmp
+  cat $file >> $XDIR/fonts.alias.update-tmp
+fi
+  done
+fi
+# Was there a processed file?
+if [ -s $XDIR/fonts.alias.update-tmp ]; then
   # write new alias file in case we are interrupted
   cat > $XDIR/fonts.alias.update-new << EOF
 !! fonts.alias -- automatically generated file.  DO NOT EDIT.
 !! To modify, see update-fonts-alias(8).
 EOF
-  for file in $ETCDIR/*.alias; do
-echo "!! $file" >> $XDIR/fonts.alias.update-new
-cat $file >> $XDIR/fonts.alias.update-new
-  done
+  cat $XDIR/fonts.alias.update-tmp >> $XDIR/fonts.alias.update-new
   mv $XDIR/fonts.alias.update-new $XDIR/fonts.alias
+  rm $XDIR/fonts.alias.update-tmp
 else
-  # no files to process, remove the one in the font dir
+  # no files processed
+  rm -f $XDIR/fonts.alias.update-tmp
   rm -f $XDIR/fonts.alias
   # remove the font dir if it is empty
   rmdir $XDIR > /dev/null 2>&1 || true