From fdf2e32c937702b1e803232b0ca46338cb18ca59 Mon Sep 17 00:00:00 2001
From: Morten Werner Forsbring <werner@debian.org>
Date: Thu, 8 Oct 2015 09:10:10 -0700
Subject: Fix save to mark forgetter instances as unchanged

 Forgetter instances that were changed were never marked as unchanged when
 saved, resulting in unnecessary re-saves on subsequent calls to save() or
 upon garbage collection. Patched forgetSQL.py to fix this.
 .
 Also drop useless shebang line as it's a module not a script.
Origin: vendor, introduced by maintainer in 0.5.1-9

Patch-Name: mark-unchanged-after-save
---
 lib/forgetSQL.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/forgetSQL.py b/lib/forgetSQL.py
index 58ec559..df54cdb 100755
--- a/lib/forgetSQL.py
+++ b/lib/forgetSQL.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 #-*- coding: iso-8859-1 -*-
 __version__ = "0.5.1"
 
@@ -667,6 +666,8 @@ My fields: %s""" % (selectfields, cls._sqlFields)
     # cursor.commit()
     cursor.close()
     self._new = False
+    # Make sure we don't think we're still modified after a save
+    self._changed = None
   
   def getAll(cls, where=None, orderBy=None):
     """Retrieves all the objects, possibly matching
