summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-smartpm/channels-rpm_sys-use-md5sum-instead-of-mtime-as-the-.patch
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2017-01-02 15:14:41 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-14 14:42:16 +0000
commit372bcd3c978524fa2ca31e4fe14f288f67562cdb (patch)
tree81a8bbbf8bf754f9891e81ccfdc80ea5e1ec32ac /meta/recipes-devtools/python/python-smartpm/channels-rpm_sys-use-md5sum-instead-of-mtime-as-the-.patch
parentb70f96a17fc13a74c04fd56e34cdc8f84dbf2f69 (diff)
downloadpoky-372bcd3c978524fa2ca31e4fe14f288f67562cdb.tar.gz
python-smartpm: remove the recipe
(From OE-Core rev: 9ff0e8b4012f1e68f6caebc3027f9d1bada00f13) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python-smartpm/channels-rpm_sys-use-md5sum-instead-of-mtime-as-the-.patch')
-rw-r--r--meta/recipes-devtools/python/python-smartpm/channels-rpm_sys-use-md5sum-instead-of-mtime-as-the-.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm/channels-rpm_sys-use-md5sum-instead-of-mtime-as-the-.patch b/meta/recipes-devtools/python/python-smartpm/channels-rpm_sys-use-md5sum-instead-of-mtime-as-the-.patch
deleted file mode 100644
index 2f14a124ef..0000000000
--- a/meta/recipes-devtools/python/python-smartpm/channels-rpm_sys-use-md5sum-instead-of-mtime-as-the-.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1channels/rpm_sys: use md5sum instead of mtime as the digest
2
3Use the internal getFileDigest() function (which defaults to md5) instead of
4mtime for getting the file digest. On some systems mtime proved to be
5unreliable because of delayed update. This caused smart to miss rpm db updates
6and thus get its understanding of installed packages out of sync.
7
8Upstream-Status: Pending
9
10Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11---
12 smart/channels/rpm_sys.py | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15diff --git a/smart/channels/rpm_sys.py b/smart/channels/rpm_sys.py
16index b9fda27..6f1fe94 100644
17--- a/smart/channels/rpm_sys.py
18+++ b/smart/channels/rpm_sys.py
19@@ -22,6 +22,7 @@
20 from smart.backends.rpm.header import RPMDBLoader
21 from smart.backends.rpm.base import getTS, rpm_join_dbpath
22 from smart.channel import PackageChannel
23+from smart.util.filetools import getFileDigest
24 from smart import *
25 import os
26
27@@ -35,7 +36,7 @@ class RPMSysChannel(PackageChannel):
28 dbdir = rpm_join_dbpath(sysconf.get("rpm-root", "/"),
29 sysconf.get("rpm-dbpath", "var/lib/rpm"))
30 path = os.path.join(dbdir, "Packages")
31- digest = os.path.getmtime(path)
32+ digest = getFileDigest(path)
33 if digest == self._digest:
34 return True
35 self.removeLoaders()
36--
372.6.6
38