Merged from trunk -r12552:12556
authorFabian Groffen <grobian@gentoo.org>
Fri, 30 Jan 2009 21:26:11 +0000 (21:26 -0000)
committerFabian Groffen <grobian@gentoo.org>
Fri, 30 Jan 2009 21:26:11 +0000 (21:26 -0000)
   | 12553   | Inside fetch(), only mention /var/log/emerge-fetch.log in    |
   | zmedico | locking messages when called by emerge.                      |

   | 12554   | Remove the emerge-fetch.log lock message code from fetch()   |
   | zmedico | since this is handled by the EbuildBuild class when it       |
   |         | synchronizes with the prefetcher.                            |

   | 12555   | Add messages before and after the src_prepare phase. Thanks  |
   | zmedico | to Arfrever for this patch.                                  |

   | 12556   | Fix die() usage in ebuild phase examples. Thanks to Jeremy   |
   | zmedico | Olexa <darkside@g.o> for this patch.                         |

svn path=/main/branches/prefix/; revision=12563

bin/ebuild.sh
man/ebuild.5
pym/portage/__init__.py

index 64250ccf99d38b84c67fec25739c843303083267..0ce6f896e7238bbce8e685f5ed3d6614217724ac 100755 (executable)
@@ -896,8 +896,10 @@ dyn_prepare() {
        trap abort_prepare SIGINT SIGQUIT
 
        ebuild_phase pre_src_prepare
+       vecho ">>> Preparing source in $srcdir ..."
        ebuild_phase src_prepare
        touch "$PORTAGE_BUILDDIR"/.prepared
+       vecho ">>> Source prepared."
        ebuild_phase post_src_prepare
 
        trap SIGINT SIGQUIT
index 50a54a0b0ade3c374fedf208951c5248ebbf862e..cbac04bac5f0c840334d954eac59cd577a7283e8 100644 (file)
@@ -25,7 +25,7 @@ inherit some_eclass another_eclass
 
 DESCRIPTION="Super\-useful stream editor (sed)"
 HOMEPAGE="http://www.gnu.org/software/sed/sed.html"
-SRC_URI="ftp://alpha.gnu.org/pub/gnu/sed/${P}.tar.gz"
+SRC_URI="ftp://alpha.gnu.org/pub/gnu/${PN}/${P}.tar.gz"
 
 LICENSE="GPL\-2"
 SLOT="0"
@@ -37,14 +37,13 @@ DEPEND="nls? ( sys-devel/gettext )"
 
 src_compile() {
        econf \\
-               \-\-bindir="${EPREFIX}"/bin \\
-               || die "could not configure"
+               \-\-bindir="${EPREFIX}"/bin
        emake || die "emake failed"
 }
 
 src_install() {
        emake install DESTDIR="${D}" || die "Install failed"
-       dodoc NEWS README* THANKS AUTHORS BUGS ChangeLog
+       dodoc NEWS README* THANKS AUTHORS BUGS ChangeLog || die "dodoc failed"
 }
 .fi
 .SH "VARIABLES"
index d95e77b447ea57bf08b228f41fe5d48205a8966e..c9782f2944930cb07a0a1659720a261ab285e1c9 100644 (file)
@@ -3739,17 +3739,6 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
                                        has_space = False
 
                        if distdir_writable and use_locks:
-                               waiting_msg = None
-                               if not parallel_fetchonly and "parallel-fetch" in features:
-                                       waiting_msg = ("Fetching '%s' " + \
-                                               "in the background. " + \
-                                               "To view fetch progress, run `tail -f " + \
-                                               EPREFIX + "/var/log/emerge-fetch.log` in another " + \
-                                               "terminal.") % myfile
-                                       msg_prefix = colorize("GOOD", " * ")
-                                       from textwrap import wrap
-                                       waiting_msg = "\n".join(msg_prefix + line \
-                                               for line in wrap(waiting_msg, 65))
 
                                if locks_in_subdir:
                                        lock_file = os.path.join(mysettings["DISTDIR"],
@@ -3760,8 +3749,6 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
                                lock_kwargs = {}
                                if fetchonly:
                                        lock_kwargs["flags"] = os.O_NONBLOCK
-                               else:
-                                       lock_kwargs["waiting_msg"] = waiting_msg
 
                                try:
                                        file_lock = portage.locks.lockfile(myfile_path,