-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2/4/11 4:02 PM, Julius Canute wrote:
> Hi,
> I am trying to write an info file which will fetch cont-tmf.zip and unzip it, 
> but the unzip command in the PatchScript section is not getting executed. if 
> i try the command "unzip cont-tmf.zip" separately in the terminal it is 
> getting executed. what am i doing wrong why is the cont-tmf.zip which was 
> downloaded not getting extracted.
> 
> I have posted the info file for your analysis.
> 
> Package: context
> Version:  6.2.1
> Revision: 1
> Provides: context
> Source: http://www.pragma-ade.com/context/current/cont-tmf.zip
> SourceDirectory: context
> License: OSI-Approved
> HomePage: http://www.pragma-ade.com
> Maintainer: kuldhip <[email protected]>
> Description: Typesetting package
> Source-MD5:88a008311ce619ee81f582fb063a63bf
> NoSourceDirectory: true
> PatchScript: <<
> unzip cont-tmf.zip 
> <<
> 
> Regards
> A.Julius Cantue

Oh, I just noticed you're setting both SourceDirectory and
NoSourceDirectory.  Don't do that.

As the packaging manual states:

SourceDirectory
Must be used when the tarball expands to a *single* directory, but the
directory's name is different from the basename of the tarball....

NoSourceDirectory       
Set this boolean parameter to a true value if the tarball *does not*
expand to a single directory....

Looking at the contents of your source:
$ unzip -t cont-tmf.zip
Archive:  cont-tmf.zip
    testing: bibtex/                  OK
    testing: bibtex/bst/              OK
    testing: bibtex/bst/context/      OK
    testing: bibtex/bst/context/cont-ab.bst   OK
    testing: bibtex/bst/context/cont-au.bst   OK
    testing: bibtex/bst/context/cont-no.bst   OK
    testing: bibtex/bst/context/cont-ti.bst   OK
    testing: context/                 OK
    testing: context/config/          OK
    testing: context/data/            OK
    testing: context/data/scite/      OK
...

That clearly doesn't expand to a single directory, so NoSourceDirectory:
true is appropriate.

- -- 
Alexander Hansen, Ph.D.
Fink User Liaison
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1MbvwACgkQB8UpO3rKjQ9gqACeMarn1MchoEpOD/dyB04Ag2of
u6EAn3x9xcmMc+Bvs8YvUpFKR/Ku4bn0
=5yVp
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to