From: jbj Date: Fri, 24 Sep 1999 16:02:14 +0000 (+0000) Subject: Improved warning message on legacy epoch-less compare. X-Git-Tag: rpm-4.4-release~2600 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=098c2a19dfa65bc9a97a0e11f4c80a56eb97eabd;p=platform%2Fupstream%2Frpm.git Improved warning message on legacy epoch-less compare. CVS patchset: 3324 CVS date: 1999/09/24 16:02:14 --- diff --git a/lib/depends.c b/lib/depends.c index 8e1e504..10bbc0d 100644 --- a/lib/depends.c +++ b/lib/depends.c @@ -334,9 +334,12 @@ static int rangesOverlap(const char *AName, const char *AEVR, int AFlags, sense = 0; if (aE && *aE && bE && *bE) sense = rpmvercmp(aE, bE); - else if (aE && *aE && atol(aE) > 0) - sense = 0; /* XXX legacy epoch-less requires/conflicts compatibility */ - else if (bE && *bE && atol(bE) > 0) + else if (aE && *aE && atol(aE) > 0) { + /* XXX legacy epoch-less requires/conflicts compatibility */ + rpmMessage(RPMMESS_WARNING, _("the \"B\" dependency needs an epoch (assuming same as \"A\")\n\tA %s\tB %s\n"), + aDepend, bDepend); + sense = 0; + } else if (bE && *bE && atol(bE) > 0) sense = -1; if (sense == 0) { diff --git a/po/rpm.pot b/po/rpm.pot index 1c99bc6..74b4d51 100644 --- a/po/rpm.pot +++ b/po/rpm.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 1999-09-24 10:26-0400\n" +"POT-Creation-Date: 1999-09-24 11:41-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -1972,78 +1972,85 @@ msgstr "" msgid "error removing record %s into %s" msgstr "" -#: ../lib/depends.c:365 +#. XXX legacy epoch-less requires/conflicts compatibility +#: ../lib/depends.c:339 +#, c-format +msgid "" +"the \"B\" dependency needs an epoch (assuming same as A) -- A %s\tB %s\n" +msgstr "" + +#: ../lib/depends.c:368 #, c-format msgid " %s A %s\tB %s\n" msgstr "" -#: ../lib/depends.c:457 +#: ../lib/depends.c:460 msgid "dbrecMatchesDepFlags() failed to read header" msgstr "" -#: ../lib/depends.c:691 +#: ../lib/depends.c:695 #, c-format msgid "%s: %s satisfied by added package.\n" msgstr "" -#: ../lib/depends.c:708 +#: ../lib/depends.c:712 #, c-format msgid "%s: %s satisfied by added provide.\n" msgstr "" -#: ../lib/depends.c:713 +#: ../lib/depends.c:717 #, c-format msgid "%s: %s satisfied by added file list.\n" msgstr "" -#: ../lib/depends.c:743 +#: ../lib/depends.c:747 #, c-format msgid "%s: %s satisfied by rpmrc provides.\n" msgstr "" -#: ../lib/depends.c:771 +#: ../lib/depends.c:775 #, c-format msgid "%s: %s satisfied by db file lists.\n" msgstr "" -#: ../lib/depends.c:793 +#: ../lib/depends.c:797 #, c-format msgid "%s: %s satisfied by db provides.\n" msgstr "" -#: ../lib/depends.c:815 +#: ../lib/depends.c:819 #, c-format msgid "%s: %s satisfied by db packages.\n" msgstr "" -#: ../lib/depends.c:828 +#: ../lib/depends.c:832 #, c-format msgid "%s: %s satisfied by rpmlib version.\n" msgstr "" -#: ../lib/depends.c:838 +#: ../lib/depends.c:842 #, c-format msgid "%s: %s unsatisfied.\n" msgstr "" #. requirements are not satisfied. -#: ../lib/depends.c:889 +#: ../lib/depends.c:893 #, c-format msgid "package %s require not satisfied: %s\n" msgstr "" #. conflicts exist. -#: ../lib/depends.c:951 +#: ../lib/depends.c:955 #, c-format msgid "package %s conflicts: %s\n" msgstr "" -#: ../lib/depends.c:1006 ../lib/depends.c:1310 +#: ../lib/depends.c:1010 ../lib/depends.c:1314 #, c-format msgid "cannot read header at %d for dependency check" msgstr "" -#: ../lib/depends.c:1101 +#: ../lib/depends.c:1105 #, c-format msgid "loop in prerequisite chain: %s" msgstr "" diff --git a/rpm.spec b/rpm.spec index 4b5fe2f..4d70afa 100644 --- a/rpm.spec +++ b/rpm.spec @@ -2,7 +2,7 @@ Summary: The Red Hat package management system. Name: rpm %define version 3.0.3 Version: %{version} -Release: 0.32 +Release: 0.33 Group: System Environment/Base Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-3.0.x/rpm-%{version}.tar.gz Copyright: GPL