]> arthur.barton.de Git - bup.git/commitdiff
Merge branch 'master' into meta
authorAvery Pennarun <apenwarr@gmail.com>
Mon, 30 May 2011 00:50:25 +0000 (20:50 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Mon, 30 May 2011 00:50:25 +0000 (20:50 -0400)
* master: (27 commits)
  t/test.sh: 'ls' on NetBSD sets -A by default as root; work around it.
  README: add a list of binary packages
  README: rework the title hierarchy
  Clarify the message when the BUP_DIR doesn't exist.
  Refactor: unify ls/ftp-ls code
  ftp/ls: Adjust documentation
  ls: include hidden files when explicitly requested
  ftp: implement ls -s (show hashes)
  ftp/ls: columnate output attached to a tty, else don't
  ftp: don't output trailing line for 'ls'
  ftp: output a newline on EOF when on a tty
  config: more config stuff to config/ subdir, call it from Makefile.
  cmd/{split,save}: support any compression level using the new -# feature.
  options.py: add support for '-#' style compression options.
  Add documentation for compression levels
  Add test case for compression level
  Add compression level options to bup save and bup split
  Make zlib compression level a parameter for Client
  Make zlib compression level a parameter of git.PackWriter
  Use is_superuser() rather than checking euid directly
  ...

Conflicts:
lib/bup/metadata.py

1  2 
Makefile
lib/bup/_helpers.c
lib/bup/git.py
lib/bup/metadata.py
t/test-meta.sh

diff --cc Makefile
Simple merge
index 2e7c6bff382efdb6d4e67969cabb9fa1b1c3e785,a0656cc66cdca1ebae5939adc331956fbb67b34d..5956f5bb54c6e3903e4ec2a6e204633b5d1210d1
@@@ -759,45 -760,11 +760,45 @@@ static PyObject *bup_utimensat(PyObjec
  
  #endif /* defined(_ATFILE_SOURCE)
            || _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L */
+ #endif /* HAVE_UTIMENSAT */
  
 -#ifdef linux /* and likely others */
 +static PyObject *stat_struct_to_py(const struct stat *st)
 +{
 +    /* Enforce the current timespec nanosecond range expectations. */
 +    if (st->st_atim.tv_nsec < 0 || st->st_atim.tv_nsec > 999999999)
 +    {
 +        PyErr_SetString(PyExc_ValueError, "invalid atime timespec nanoseconds");
 +        return NULL;
 +    }
 +    if (st->st_mtim.tv_nsec < 0 || st->st_mtim.tv_nsec > 999999999)
 +    {
 +        PyErr_SetString(PyExc_ValueError, "invalid mtime timespec nanoseconds");
 +        return NULL;
 +    }
 +    if (st->st_ctim.tv_nsec < 0 || st->st_ctim.tv_nsec > 999999999)
 +    {
 +        PyErr_SetString(PyExc_ValueError, "invalid ctime timespec nanoseconds");
 +        return NULL;
 +    }
 +
 +    return Py_BuildValue("kkkkkkkk(Ll)(Ll)(Ll)",
 +                         (unsigned long) st->st_mode,
 +                         (unsigned long) st->st_ino,
 +                         (unsigned long) st->st_dev,
 +                         (unsigned long) st->st_nlink,
 +                         (unsigned long) st->st_uid,
 +                         (unsigned long) st->st_gid,
 +                         (unsigned long) st->st_rdev,
 +                         (unsigned long) st->st_size,
 +                         (long long) st->st_atime,
 +                         (long) st->st_atim.tv_nsec,
 +                         (long long) st->st_mtime,
 +                         (long) st->st_mtim.tv_nsec,
 +                         (long long) st->st_ctime,
 +                         (long) st->st_ctim.tv_nsec);
 +}
 +
  
 -#define HAVE_BUP_STAT 1
  static PyObject *bup_stat(PyObject *self, PyObject *args)
  {
      int rc;
diff --cc lib/bup/git.py
Simple merge
index aecf740a13c3507559b4bf56b638acde901ffb50,981ad096a5857367af49fffc6710f853f19d795e..46d04b9e162d5eb73e6100cfa6a9da4b61329f92
@@@ -6,10 -6,10 +6,10 @@@
  # Public License as described in the bup LICENSE file.
  import errno, os, sys, stat, pwd, grp, struct, re
  from cStringIO import StringIO
 -from bup import vint
 +from bup import vint, xstat
  from bup.drecurse import recursive_dirlist
- from bup.helpers import add_error, mkdirp, log
- from bup.xstat import utime, lutime
+ from bup.helpers import add_error, mkdirp, log, is_superuser
 -from bup.xstat import utime, lutime, lstat, FSTime
++from bup.xstat import utime, lutime, lstat
  import bup._helpers as _helpers
  
  try:
diff --cc t/test-meta.sh
Simple merge