unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 0/1] *** SUBJECT HERE ***
@ 2014-10-19  2:18 Ian Denhardt
  2014-10-19  2:03 ` [PATCH 1/1] Factor out a common pattern into a procedure Ian Denhardt
  2014-10-19  2:29 ` [PATCH 0/1] *** SUBJECT HERE *** Ian Denhardt
  0 siblings, 2 replies; 11+ messages in thread
From: Ian Denhardt @ 2014-10-19  2:18 UTC (permalink / raw)
  To: guix-devel

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-10-19 21:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-19  2:18 [PATCH 0/1] *** SUBJECT HERE *** Ian Denhardt
2014-10-19  2:03 ` [PATCH 1/1] Factor out a common pattern into a procedure Ian Denhardt
2014-10-19  7:40   ` John Darrington
2014-10-19  9:39     ` Ludovic Courtès
2014-10-19 14:43       ` Mark H Weaver
2014-10-19 17:45         ` Ludovic Courtès
2014-10-19 18:15     ` Ian Denhardt
2014-10-19 20:24       ` Ludovic Courtès
2014-10-19 21:12         ` Ian Denhardt
2014-10-19 14:57   ` Mark H Weaver
2014-10-19  2:29 ` [PATCH 0/1] *** SUBJECT HERE *** Ian Denhardt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).