Bug#329413: beta firefox and postinst

2005-11-03 Thread Mike Hommey
tag 329413 +patch
thanks

On Thu, Oct 06, 2005 at 03:16:51PM -0400, Michael Spang [EMAIL PROTECTED] 
wrote:
 Right now I am assuming that once Firefox 1.5 is released to unstable, 
 the Debian chrome update scripts will be included. I sent the Firefox 
 maintainer an email to try and confirm this, but I haven't received any 
 reply yet. Note that this script is Debian-specific, it's there so a 
 package can drop a file into /var/lib/mozilla-firefox/extensions.d 
 instead of touching Firefox's installed-chrome.txt directly. My hands 
 are tied right now because I don't whether or not this system will 
 change for the first release of 1.5 into the main archive.

I'm pretty sure I replied to your mail. Maybe you didn't receive it.

Anyways, the update-mozilla-firefox-chrome won't return, since it's
useless for firefox 1.5. You can just check whether it exists or not
before running it.

Attached a patch for doing so.

Cheers,

Mike
diff -ruN mozilla-firefox-webdeveloper-0.9.3/debian/postinst 
mozilla-firefox-webdeveloper-0.9.3.new/debian/postinst
--- mozilla-firefox-webdeveloper-0.9.3/debian/postinst  2005-11-03 
20:16:03.982480760 +0100
+++ mozilla-firefox-webdeveloper-0.9.3.new/debian/postinst  2005-11-03 
20:15:28.092936800 +0100
@@ -5,7 +5,9 @@
 
 case $1 in
 configure)
-update-mozilla-firefox-chrome
+if which update-mozilla-firefox-chrome 2 /dev/null  /dev/null; then
+   update-mozilla-firefox-chrome
+   fi
 ;;
 
 abort-upgrade|abort-remove|abort-deconfigure)
diff -ruN mozilla-firefox-webdeveloper-0.9.3/debian/postrm 
mozilla-firefox-webdeveloper-0.9.3.new/debian/postrm
--- mozilla-firefox-webdeveloper-0.9.3/debian/postrm2005-11-03 
20:16:03.982480760 +0100
+++ mozilla-firefox-webdeveloper-0.9.3.new/debian/postrm2005-11-03 
20:15:43.692565296 +0100
@@ -5,7 +5,9 @@
 
 case $1 in
 remove)
-update-mozilla-firefox-chrome
+if which update-mozilla-firefox-chrome 2 /dev/null  /dev/null; then
+update-mozilla-firefox-chrome
+   fi
 ;;
 purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 


Bug#329413: beta firefox and postinst

2005-11-03 Thread Michael Spang

I'm pretty sure I replied to your mail. Maybe you didn't receive it.


Interesting, I don't have it and can't recall seeing it. I must have deleted it 
with all of my spam.


Anyways, the update-mozilla-firefox-chrome won't return, since it's
useless for firefox 1.5. You can just check whether it exists or not
before running it.


Thanks for the info. Guess installed-chrome.txt is out the window, which is 
fine by me.
The new system in 1.5 seems to be working great.


Attached a patch for doing so.


Applied. Will be fixed in 0.9.4-1.


Thanks,
Mike



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



Bug#329413: beta firefox and postinst

2005-10-06 Thread Michael Spang
Right now I am assuming that once Firefox 1.5 is released to unstable, 
the Debian chrome update scripts will be included. I sent the Firefox 
maintainer an email to try and confirm this, but I haven't received any 
reply yet. Note that this script is Debian-specific, it's there so a 
package can drop a file into /var/lib/mozilla-firefox/extensions.d 
instead of touching Firefox's installed-chrome.txt directly. My hands 
are tied right now because I don't whether or not this system will 
change for the first release of 1.5 into the main archive.



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