From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Subject: Re: [PATCH] ipkg-utils: convert mtime to int before comparing it
Date: Mon, 21 Jun 2010 11:24:06 -0700 [thread overview]
Message-ID: <20100621182406.GA27606@gmail.com> (raw)
In-Reply-To: <1276606987-8681-1-git-send-email-enrico.scholz@sigma-chemnitz.de>
On (15/06/10 15:03), Enrico Scholz wrote:
> The st_mtime attribute (which is a float) is compared against a value
> from the timestamp database, which was stored as an integer there.
Is it stored as integer or long int? Did you try it on x86_64 box.
>
> When working on a filesystem with precise timestamps the comparision
> will fail nearly everytime hence.
>
> Although it might be possible to enhance the database to store the
> fractional part too, this will complicate things more than we would
> gain by this change.
>
> Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
> ---
> .../ipkg-utils-native_1.6+cvs20050404.bb | 2 +-
> .../ipkg-utils/ipkg-make-index-track-stamps.patch | 2 +-
> recipes/ipkg-utils/ipkg-utils_1.6+cvs20050404.bb | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/recipes/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb b/recipes/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb
> index 98cc7f1..11e124b 100644
> --- a/recipes/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb
> +++ b/recipes/ipkg-utils/ipkg-utils-native_1.6+cvs20050404.bb
> @@ -1,7 +1,7 @@
> require ipkg-utils_${PV}.bb
>
> RDEPENDS_${PN} = ""
> -PR = "r22"
> +PR = "r23"
>
> inherit native
>
> diff --git a/recipes/ipkg-utils/ipkg-utils/ipkg-make-index-track-stamps.patch b/recipes/ipkg-utils/ipkg-utils/ipkg-make-index-track-stamps.patch
> index ad6df4f..68758ed 100644
> --- a/recipes/ipkg-utils/ipkg-utils/ipkg-make-index-track-stamps.patch
> +++ b/recipes/ipkg-utils/ipkg-utils/ipkg-make-index-track-stamps.patch
> @@ -53,7 +53,7 @@ Index: ipkg-utils/ipkg-make-index
> + fnameStat = os.stat(filename)
> if old_pkg_hash.has_key(basename):
> - if (verbose):
> -+ if pkgsStamps.has_key(basename) and fnameStat.st_mtime == pkgsStamps[basename]:
> ++ if pkgsStamps.has_key(basename) and int(fnameStat.st_mtime) == pkgsStamps[basename]:
> + if (verbose):
> sys.stderr.write("Found %s in Packages\n" % (filename,))
> - pkg = old_pkg_hash[basename]
> diff --git a/recipes/ipkg-utils/ipkg-utils_1.6+cvs20050404.bb b/recipes/ipkg-utils/ipkg-utils_1.6+cvs20050404.bb
> index fe1f28b..aa2bfbb 100644
> --- a/recipes/ipkg-utils/ipkg-utils_1.6+cvs20050404.bb
> +++ b/recipes/ipkg-utils/ipkg-utils_1.6+cvs20050404.bb
> @@ -5,7 +5,7 @@ LICENSE = "GPL"
> CONFLICTS = "ipkg-link"
> RDEPENDS_${PN} = "python"
> SRCDATE = "20050930"
> -PR = "r25"
> +PR = "r26"
>
> SRC_URI = "${HANDHELDS_CVS};module=ipkg-utils \
> file://ipkg-utils-fix.patch \
> --
> 1.7.0.1
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
next prev parent reply other threads:[~2010-06-21 19:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-15 13:03 [PATCH] ipkg-utils: convert mtime to int before comparing it Enrico Scholz
2010-06-21 18:24 ` Khem Raj [this message]
2010-06-21 18:31 ` Enrico Scholz
2010-06-21 18:35 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100621182406.GA27606@gmail.com \
--to=raj.khem@gmail.com \
--cc=enrico.scholz@sigma-chemnitz.de \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox