Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] ipkg-utils: convert mtime to int before comparing it
Date: Mon, 21 Jun 2010 11:35:18 -0700	[thread overview]
Message-ID: <20100621183518.GB27606@gmail.com> (raw)
In-Reply-To: <lylja8qluj.fsf@ensc-virt.intern.sigma-chemnitz.de>

On (21/06/10 20:31), Enrico Scholz wrote:
> Khem Raj <raj.khem@gmail.com> writes:
> 
> > 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.
> 
> As 'int'. The ipkg-make-index-track-stamps.patch stores them as
> 
> +    pkgsStamps[basename] = fnameStat.st_mtime
>      ...
> +    pkgsStampsFile.write("%d %s\n" % (pkgsStamps[f], f))
> 
> and reads them back as
> 
> +            s, f = l.split(" ", 1)
> +            pkgsStamps[f] = int(s)
> 
> 

OK

Acked-by: Khem Raj <raj.khem@gmail.com>


> > -+          if pkgsStamps.has_key(basename) and fnameStat.st_mtime == pkgsStamps[basename]:
> > ++          if pkgsStamps.has_key(basename) and int(fnameStat.st_mtime) == pkgsStamps[basename]:
> 
> 
> 
> Enrico



      reply	other threads:[~2010-06-21 18:44 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
2010-06-21 18:31   ` Enrico Scholz
2010-06-21 18:35     ` Khem Raj [this message]

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=20100621183518.GB27606@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