Prompted by Mark Weaver's feedback on the ntp package patch earlier today, I
refactored the pattern:

    (string-join (take (string-split version #\.) 2)
                 ".")

Into a common procedure:

    (version-take-api version)

..and modified the existing package recepies accordingly.

Ian Denhardt (1):
  Factor out a common pattern into a procedure.

 gnu/packages/backup.scm |  7 ++++---
 gnu/packages/cmake.scm  | 11 +++++------
 gnu/packages/gnome.scm  | 10 +++++-----
 gnu/packages/gnutls.scm |  8 ++++----
 gnu/packages/mail.scm   |  9 ++++-----
 gnu/packages/mpd.scm    |  6 +++---
 gnu/packages/mpi.scm    |  8 ++++----
 guix/utils.scm          |  7 +++++++
 8 files changed, 36 insertions(+), 30 deletions(-)

-- 
1.9.1


Reply via email to