WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: nspr  (Read 2728 times)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
nspr
« on: June 09, 2010, 07:45:38 PM »
thanks to Arslan S. for nspr.  This along with nss replaces the nss-nspr.tcz extension.  Be sure to download nss.tcz and nspr.tcz and then update your dep files with Appsaudit.  Then remove the nss-nspr.tcz extension:

Code: [Select]
Title:          nspr-dev.tcz
Description:    Netscape Portable Runtime, development package.
Version:        4.8.4
Author:         The Mozilla Community
Original-site:  http://www.mozilla.org/projects/nspr/
Copying-policy: MPL 1.1/GPL 2.0/LGPL
Size: 748K
Extension_by:   Arslan S.
Comments:       This extension is PPI compatible.
Change-log:     ---
Current:    2010/06/07 Original 4.8.4


Code: [Select]
Title:          nspr.tcz
Description:    Netscape Portable Runtime.
Version:        4.8.4
Author:         The Mozilla Community
Original-site:  http://www.mozilla.org/projects/nspr/
Copying-policy: MPL 1.1/GPL 2.0/LGPL
Size: 140K
Extension_by:   Arslan S.
Comments:       This extension is PPI compatible.
Change-log:     ---
Current:    2010/06/07 Original 4.8.4


Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: nspr
« Reply #1 on: June 09, 2010, 07:52:15 PM »
Jason, I assume you are planning to update the .dep files of the repository, since they are all still showing the use of nss-nspr.tcz (and nss-nspr-dev.tcz).

This is the case at this point in time, so I might be a bit too early with my remark here.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: nspr
« Reply #2 on: June 09, 2010, 08:54:11 PM »
I really like how you are on top of things, but I did change the dep files shortly after:

Code: [Select]
tcz]$ for I in `ls *.dep`; do cat "$I" | grep "nss-nspr" && echo "$I"; done
tcz]$ for I in `ls *.dep`; do cat "$I" | grep "nss-nspr-dev" && echo "$I"; done
tcz]$

tcz]$ for I in `ls *.dep`; do cat "$I" | grep "nss.tcz" && echo "$I"; done
nss.tcz
centerim-encrypt.tcz.dep
nss.tcz
centerim.tcz.dep
nss.tcz
chromium-browser.tcz.dep
nss.tcz
epiphany.tcz.dep
nss.tcz
evolution-data-server.tcz.dep
nss.tcz
getFlash10.tcz.dep
nss.tcz
gluezilla.tcz.dep
nss.tcz
gnome-desktop-base.tcz.dep
nss.tcz
nss-dev.tcz.dep
nss.tcz
nss-nspr-dev.tcz.dep
nss.tcz
openoffice3.tcz.dep
nss.tcz
pidgin.tcz.dep
nss.tcz
seamonkey-gtk1.tcz.dep
nss.tcz
xulrunner.tcz.dep

tcz]$ for I in `ls *.dep`; do cat "$I" | grep "nss-dev.tcz" && echo "$I"; done
nss-dev.tcz
evolution-data-server-dev.tcz.dep
nss-dev.tcz
xulrunner-dev.tcz.dep



Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: nspr
« Reply #3 on: June 09, 2010, 10:13:48 PM »
Yep, I agree you certainly did change (all) the .dep files.

I hope my comments are not too much a nuisance.

And to continue with my habit of making those comments: Whilst the loop you did is working fine you could also do things with the 'xargs' command (e.g. ls | grep '\.dep$' | xargs grep -l nss-nspr). This has the advantage that no globbing (i.e. "*.dep") is used which can cause problems if the shell can't handle super-long commands. I've burned my fingers on a Solaris production system once and I'm therefore a bit "super-careful". If the shell is playing along grep -l nss-nspr *.dep is obviously even fewer keystrokes, but that comes with the risk that the command gets too long. BTW that risk does not get eliminated by globbing in a back-ticked expression.

But as always: TMTOWTDI  (as they say in the "Perl world").

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: nspr
« Reply #4 on: June 09, 2010, 10:25:24 PM »
Maro,

Your comments and involvement are never a nuisance.  I certainly am not above overlooking something or above using a more efficient or error proof set of commands.  As always, thanks for your input.