GNU bug report logs - #27663
[PATCH] database: Fix typo.

Previous Next

Package: guix-patches;

Reported by: Mathieu Othacehe <m.othacehe <at> gmail.com>

Date: Wed, 12 Jul 2017 08:13:01 UTC

Severity: normal

Tags: patch

Done: Mathieu Othacehe <m.othacehe <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27663 in the body.
You can then email your comments to 27663 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#27663; Package guix-patches. (Wed, 12 Jul 2017 08:13:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Othacehe <m.othacehe <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 12 Jul 2017 08:13:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <m.othacehe <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Mathieu Othacehe <m.othacehe <at> gmail.com>
Subject: [PATCH] database: Fix typo.
Date: Wed, 12 Jul 2017 10:11:11 +0200
* src/cuirass/database.scm (db-get-stamp, db-add-stamp): Replace #:id
  by #:name. There is no #:id in specifications. Plus, the primary key
  of Specifications is #:name.
---
 src/cuirass/database.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/cuirass/database.scm b/src/cuirass/database.scm
index 1ced411..804b8c2 100644
--- a/src/cuirass/database.scm
+++ b/src/cuirass/database.scm
@@ -195,7 +195,7 @@ INSERT INTO Builds (derivation, evaluation, log, output)\
 (define (db-get-stamp db spec)
   "Return a stamp corresponding to specification SPEC in database DB."
   (let ((res (sqlite-exec db "SELECT * FROM Stamps WHERE specification='~A';"
-                          (assq-ref spec #:id))))
+                          (assq-ref spec #:name))))
     (match res
       (() "")
       ((#(spec commit)) commit))))
@@ -205,9 +205,9 @@ INSERT INTO Builds (derivation, evaluation, log, output)\
   (if (string-null? (db-get-stamp db spec))
       (sqlite-exec db "\
 INSERT INTO Stamps (specification, stamp) VALUES ('~A', '~A');"
-                   (assq-ref spec #:id)
+                   (assq-ref spec #:name)
                    commit)
       (sqlite-exec db "\
 UPDATE Stamps SET stamp='~A' WHERE specification='~A';"
                    commit
-                   (assq-ref spec #:id))))
+                   (assq-ref spec #:name))))
-- 
2.13.1





Information forwarded to guix-patches <at> gnu.org:
bug#27663; Package guix-patches. (Wed, 12 Jul 2017 08:48:02 GMT) Full text and rfc822 format available.

Message #8 received at 27663 <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Mathieu Othacehe <m.othacehe <at> gmail.com>
Cc: 27663 <at> debbugs.gnu.org
Subject: Re: [bug#27663] [PATCH] database: Fix typo.
Date: Wed, 12 Jul 2017 10:47:51 +0200
LGTM!




Information forwarded to guix-patches <at> gnu.org:
bug#27663; Package guix-patches. (Wed, 12 Jul 2017 12:26:01 GMT) Full text and rfc822 format available.

Message #11 received at 27663 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Mathieu Othacehe <m.othacehe <at> gmail.com>
Cc: 27663 <at> debbugs.gnu.org
Subject: Re: [bug#27663] [PATCH] database: Fix typo.
Date: Wed, 12 Jul 2017 14:25:48 +0200
Mathieu Othacehe <m.othacehe <at> gmail.com> skribis:

> * src/cuirass/database.scm (db-get-stamp, db-add-stamp): Replace #:id
>   by #:name. There is no #:id in specifications. Plus, the primary key
>   of Specifications is #:name.

Good catch, go for it!

BTW, while you’re at it ;-), would you mind opening a ticket on Savannah
asking them to send us commit notifications for Cuirass to guix-commits?

Thanks,
Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#27663; Package guix-patches. (Wed, 12 Jul 2017 14:13:01 GMT) Full text and rfc822 format available.

Message #14 received at 27663 <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <m.othacehe <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 27663 <at> debbugs.gnu.org
Subject: Re: [bug#27663] [PATCH] database: Fix typo.
Date: Wed, 12 Jul 2017 16:12:49 +0200
> Good catch, go for it!

Thanks !

> BTW, while you’re at it ;-), would you mind opening a ticket on Savannah
> asking them to send us commit notifications for Cuirass to guix-commits?

Done :) 

Mathieu




Reply sent to Mathieu Othacehe <m.othacehe <at> gmail.com>:
You have taken responsibility. (Wed, 12 Jul 2017 17:06:02 GMT) Full text and rfc822 format available.

Notification sent to Mathieu Othacehe <m.othacehe <at> gmail.com>:
bug acknowledged by developer. (Wed, 12 Jul 2017 17:06:02 GMT) Full text and rfc822 format available.

Message #19 received at 27663-done <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <m.othacehe <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 27663-done <at> debbugs.gnu.org
Subject: Re: [bug#27663] [PATCH] database: Fix typo.
Date: Wed, 12 Jul 2017 19:05:17 +0200
Pushed thanks !




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 10 Aug 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 8 years and 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.