Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 161892 Details for
Bug 233487
portage-2.2_rc5 : emerge ignores --fetch-all-uri
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix --fetch-all-uri breakage
fetch_all_uri.patch (text/plain), 2.39 KB, created by
Zac Medico
on 2008-08-01 00:49:57 UTC
(
hide
)
Description:
fix --fetch-all-uri breakage
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2008-08-01 00:49:57 UTC
Size:
2.39 KB
patch
obsolete
>Index: pym/portage/__init__.py >=================================================================== >--- pym/portage/__init__.py (revision 11300) >+++ pym/portage/__init__.py (working copy) >@@ -5061,7 +5061,8 @@ > > clean_phases = ("clean", "cleanrm") > validcommands = ["help","clean","prerm","postrm","cleanrm","preinst","postinst", >- "config","info","setup","depend","fetch","digest", >+ "config", "info", "setup", "depend", >+ "fetch", "fetchall", "digest", > "unpack","compile","test","install","rpm","qmerge","merge", > "package","unmerge", "manifest"] > >@@ -5076,6 +5077,10 @@ > writemsg("\n", noiselevel=-1) > return 1 > >+ if mydo == "fetchall": >+ fetchall = 1 >+ mydo = "fetch" >+ > if mydo not in clean_phases and not os.path.exists(myebuild): > writemsg("!!! doebuild: %s not found for %s\n" % (myebuild, mydo), > noiselevel=-1) >Index: pym/_emerge/__init__.py >=================================================================== >--- pym/_emerge/__init__.py (revision 11300) >+++ pym/_emerge/__init__.py (working copy) >@@ -2227,7 +2227,7 @@ > > class EbuildFetcher(SpawnProcess): > >- __slots__ = ("fetchonly", "pkg",) >+ __slots__ = ("fetchonly", "fetchall", "pkg",) > > def _start(self): > >@@ -2235,6 +2235,9 @@ > portdb = root_config.trees["porttree"].dbapi > ebuild_path = portdb.findname(self.pkg.cpv) > settings = root_config.settings >+ phase = "fetch" >+ if self.fetchall: >+ phase = "fetchall" > > fetch_env = dict(settings.iteritems()) > fetch_env["PORTAGE_NICENESS"] = "0" >@@ -2244,7 +2247,7 @@ > ebuild_binary = os.path.join( > settings["PORTAGE_BIN_PATH"], "ebuild") > >- fetch_args = [ebuild_binary, ebuild_path, "fetch"] >+ fetch_args = [ebuild_binary, ebuild_path, phase] > debug = settings.get("PORTAGE_DEBUG") == "1" > if debug: > fetch_args.append("--debug") >@@ -2396,7 +2399,8 @@ > if self.background: > fetch_log = self.scheduler.fetch.log_file > >- fetcher = EbuildFetcher(fetchonly=opts.fetchonly, >+ fetcher = EbuildFetcher(fetchall=opts.fetch_all_uri, >+ fetchonly=opts.fetchonly, > background=self.background, logfile=fetch_log, > pkg=pkg, scheduler=self.scheduler) > >@@ -13399,6 +13403,9 @@ > "--usepkg", "--usepkgonly"): > myopts.pop(opt, None) > >+ if "--fetch-all-uri" in myopts: >+ myopts["--fetchonly"] = True >+ > if "--skipfirst" in myopts and "--resume" not in myopts: > myopts["--resume"] = True >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 233487
: 161892