From: Panu Matilainen Date: Wed, 2 Sep 2009 12:34:35 +0000 (+0300) Subject: Use %{nvra} as default query format, much simpler... X-Git-Tag: rpm-4.8.0-beta1~335 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=936e2570195d076ba36aa2bb93f04f395033945d;p=platform%2Fupstream%2Frpm.git Use %{nvra} as default query format, much simpler... --- diff --git a/lib/query.c b/lib/query.c index f2a51b3..d228670 100644 --- a/lib/query.c +++ b/lib/query.c @@ -626,7 +626,7 @@ int rpmcliQuery(rpmts ts, QVA_t qva, char * const * argv) char * fmt = rpmExpand("%{?_query_all_fmt}\n", NULL); if (fmt == NULL || strlen(fmt) <= 1) { fmt = _free(fmt); - fmt = xstrdup("%{name}-%{version}-%{release}.%{arch}\n"); + fmt = xstrdup("%{nvra}\n"); } qva->qva_queryFormat = fmt; } diff --git a/macros.in b/macros.in index c7ca713..c4de1fa 100644 --- a/macros.in +++ b/macros.in @@ -753,10 +753,10 @@ print (t)\ %{nil} # -# Default headerSprintf() output format string for rpm -qa +# Default output format string for rpm -qa # -# XXX Note: escaped %% for use in headerSprintf() -%_query_all_fmt %%{name}-%%{version}-%%{release}%%|arch?{.%%{arch}}:{}| +# XXX Note: escaped %% for use in headerFormat() +%_query_all_fmt %%{nvra} # # Default path to the file used for transaction fcmtl lock.