guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Update patch: Add (guix svn-download)


From: Sree Harsha Totakura
Subject: Update patch: Add (guix svn-download)
Date: Wed, 26 Mar 2014 17:59:00 +0100

On 03/26/2014 05:00 PM, Ludovic Courtès wrote:
> Sree Harsha Totakura <address@hidden> skribis: 
> 
>> * guix/svn-download.scm, guix/build/svn.scm: New files.
>> * Makefile.am (MODULES): Add them.
> 
>> +(define* (svn-fetch url revision directory
>> +                    #:key (svn-command "svn"))
>> +  "Fetch REVISION from URL into DIRECTORY.  REVISION must be a valid svn
>> +revision.  Return #t on success, #f otherwise."
> 
> ‘revision’ can/should be a number, no?  Please augment the docstring to
> say that, and...

Yes, `revision' is a number.

>> +  (and (zero? (system* svn-command "checkout" "--non-interactive"
>> +                       ;; Trust the server certificate.  This is OK as we
>> +                       ;; verify the checksum later.  This can be removed 
>> when
>> +                       ;; ca-certificates package is added.
>> +                       "--trust-server-cert" "-r" revision url directory))
> 
> ... possibly use (number->string revision) here ↑.
> 
>> +(define-record-type* <svn-reference>
>> +  svn-reference make-svn-reference
>> +  svn-reference?
>> +  (url    svn-reference-url)
>> +  (revision svn-reference-revision))
> 
> Please align things, add a comment saying whether ‘revision’ is a number
> or string, and add a newline before ‘define-record-type*’.

OK, here's the updated patch.

-
Sree



reply via email to

[Prev in Thread] Current Thread [Next in Thread]