1. Jun 22, 2015
  2. Jun 21, 2015
  3. Jun 20, 2015
    • Carlos Martín Nieto's avatar
      index: make relative comparison use the checksum as well · 624c949f
      Carlos Martín Nieto authored
      This is used by the submodule in order to figure out if the index has
      changed since it last read it. Using a timestamp is racy, so let's make
      it use the checksum, just like we now do for reloading the index itself.
      624c949f
    • Carlos Martín Nieto's avatar
      Merge pull request #3232 from Therzok/patch-2 · 3e5b553a
      Carlos Martín Nieto authored
      Quote LIBSSH2_LIBRARIES call
      3e5b553a
    • Carlos Martín Nieto's avatar
      tests: tick over five seconds instead of one · 863dd89a
      Carlos Martín Nieto authored
      When ticking over one second, it can happen that the actual time ticks
      over the same second between the time that we undermine our own race
      protections and the time in which we perform the index update. Such
      timing would make the time in the entries match the index' timestamp and
      we have not gained anything.
      
      Ticking over five seconds makes it so that if real-time rolls over that
      second, our index is still ahead. This is still suboptimal as we're
      dealing with timing, but five seconds should be long enough for any
      reasonable test runner to finish the tests.
      863dd89a
    • Carlos Martín Nieto's avatar
      index: use the checksum to check whether it's been modified · 5e947c91
      Carlos Martín Nieto authored
      We currently use a timetamp to check whether an index file has been
      modified since we last read it, but this is racy. If two updates happen
      in the same second and we read after the first one, we won't detect the
      second one.
      
      Instead read the SHA-1 checksum of the file, which are its last 20 bytes which
      gives us a sure-fire way to detect whether the file has changed since we
      last read it.
      
      As we're now keeping track of it, expose an accessor to this data.
      5e947c91
    • Carlos Martín Nieto's avatar
      index: user a better assertion when comparing sizes · 46c84c72
      Carlos Martín Nieto authored
      This will tell us which numbers we were trying to compare, rather than
      just telling us that they're different.
      46c84c72
  4. Jun 19, 2015
    • Marius Ungureanu's avatar
      Quote LIBSSH2_LIBRARIES call · e488bef4
      Marius Ungureanu authored
      Credits to @directhex
      
      It is possible for PKG_CHECK_MODULES(LIBSSH2 libssh2) to LIBSSH2_LIBRARIES to a string with more than one library in it - e.g. if your libssh2 was built against libgcrypt, it will be "ssh2;gcrypt"
      
      Quoting the string is needed, or CHECK_LIBRARY_EXISTS will fail.
      e488bef4
  5. Jun 18, 2015
  6. Jun 17, 2015
  7. Jun 16, 2015
  8. Jun 15, 2015