diff options
author | Aaron Griffin <aaron@archlinux.org> | 2007-01-26 02:33:03 +0100 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-01-26 02:33:03 +0100 |
commit | a5ad2b3f935c879feb1c282759b7ed5e61d177a1 (patch) | |
tree | cdce4bc35d2a8ce9f2b70fe7518f7b90c312598f | |
parent | 1def746ad5f1024c78db1935fe3baa93fe160cd1 (diff) | |
download | pacman-a5ad2b3f935c879feb1c282759b7ed5e61d177a1.tar.gz pacman-a5ad2b3f935c879feb1c282759b7ed5e61d177a1.tar.xz |
* Fix FS #3107- Use ISO date style
* Fix FS #5409- document that pacman.conf repo ordering is important
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
-rw-r--r-- | etc/pacman.conf.in | 4 | ||||
-rw-r--r-- | lib/libalpm/util.c | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/etc/pacman.conf.in b/etc/pacman.conf.in index 5935144b..fcdd65d8 100644 --- a/etc/pacman.conf.in +++ b/etc/pacman.conf.in @@ -21,7 +21,9 @@ HoldPkg = pacman glibc # - can be defined here or included from another file # - pacman will search repositories in the order defined here # - local/custom mirrors can be added here or in separate files - +# - repositories listed first will take precedence when packages +# have identical names, regardless of version number +# #[testing] #Server = ftp://ftp.archlinux.org/testing/os/i686 diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index ce9083d5..ce3bc85b 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -357,10 +357,11 @@ int _alpm_logaction(unsigned short usesyslog, FILE *f, const char *str) t = time(NULL); tm = localtime(&t); - fprintf(f, "[%02d/%02d/%02d %02d:%02d] %s\n", - tm->tm_mon+1, tm->tm_mday, tm->tm_year-100, - tm->tm_hour, tm->tm_min, - str); + /* Use ISO-8601 date format */ + fprintf(f, "[%04d-%02d-%02d %02d:%02d] %s\n", + tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, + tm->tm_hour, tm->tm_min, str); + fflush(f); } |