[patch] createrepo should respect isatty