Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 70728 Details for
Bug 109304
[PATCH] emerge pretend fetch: no option to print urls of the missing required files
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
adds patch to files and updates portage-2.0.51.22-r3.ebuild to apply it
fetch-missing-ebuild.patch (text/plain), 4.05 KB, created by
Darragh Bailey
on 2005-10-15 06:17:33 UTC
(
hide
)
Description:
adds patch to files and updates portage-2.0.51.22-r3.ebuild to apply it
Filename:
MIME Type:
Creator:
Darragh Bailey
Created:
2005-10-15 06:17:33 UTC
Size:
4.05 KB
patch
obsolete
>diff -Nur portage.orig/files/2.0.51.22-fetch-missing.patch portage/files/2.0.51.22-fetch-missing.patch >--- portage.orig/files/2.0.51.22-fetch-missing.patch 1970-01-01 01:00:00.000000000 +0100 >+++ portage/files/2.0.51.22-fetch-missing.patch 2005-10-15 12:29:52.000000000 +0100 >@@ -0,0 +1,79 @@ >+diff -ur portage-2.0.51.22.orig/bin/emerge portage-2.0.51.22/bin/emerge >+--- portage-2.0.51.22.orig/bin/emerge 2005-10-15 12:22:14.000000000 +0100 >++++ portage-2.0.51.22/bin/emerge 2005-10-15 12:23:47.000000000 +0100 >+@@ -174,6 +174,7 @@ >+ "--digest", >+ "--emptytree", >+ "--fetchonly", "--fetch-all-uri", >++"--fetch-missing", >+ "--getbinpkg", "--getbinpkgonly", >+ "--help", "--noconfmem", >+ "--newuse", "--nocolor", >+@@ -1853,10 +1854,14 @@ >+ if (x[0]=="blocks") and ("--fetchonly" not in myopts): >+ raise Exception, "Merging a blocker" >+ elif ("--fetchonly" in myopts) or ("--fetch-all-uri" in myopts): >++ if ("--fetch-missing" in myopts): >++ fetchmissing=1 >++ else: >++ fetchmissing=0 >+ if ("--fetch-all-uri" in myopts): >+- retval=portage.doebuild(y,"fetch",myroot,self.pkgsettings,edebug,("--pretend" in myopts),fetchonly=1,fetchall=1) >++ retval=portage.doebuild(y,"fetch",myroot,self.pkgsettings,edebug,("--pretend" in myopts),fetchonly=1,fetchall=1,fetchmissing=fetchmissing) >+ else: >+- retval=portage.doebuild(y,"fetch",myroot,self.pkgsettings,edebug,("--pretend" in myopts),fetchonly=1) >++ retval=portage.doebuild(y,"fetch",myroot,self.pkgsettings,edebug,("--pretend" in myopts),fetchonly=1,fetchmissing=fetchmissing) >+ if (retval == None) or retval: >+ print >+ print "!!! Fetch for",y,"failed, continuing..." >+diff -ur portage-2.0.51.22.orig/pym/portage.py portage-2.0.51.22/pym/portage.py >+--- portage-2.0.51.22.orig/pym/portage.py 2005-10-15 12:22:14.000000000 +0100 >++++ portage-2.0.51.22/pym/portage.py 2005-10-15 12:23:47.000000000 +0100 >+@@ -1604,7 +1604,7 @@ >+ >+ >+ >+-def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",use_locks=1, try_mirrors=1): >++def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",use_locks=1, try_mirrors=1, fetchmissing=0): >+ "fetch files. Will use digest file if available." >+ >+ # 'nomirror' is bad/negative logic. You Restrict mirroring, not no-mirroring. >+@@ -1821,7 +1821,7 @@ >+ file_lock = portage_locks.lockfile(mysettings["DISTDIR"]+"/"+myfile,wantnewlockfile=1) >+ try: >+ for loc in filedict[myfile]: >+- if listonly: >++ if listonly and not fetchmissing: >+ writemsg(loc+" ") >+ continue >+ # allow different fetchcommands per protocol >+@@ -1868,6 +1868,11 @@ >+ writemsg("An exception was caught(1)...\nFailing the download: %s.\n" % (str(e)),1) >+ fetched=0 >+ >++ if listonly: >++ if fetched == 0: >++ writemsg(loc+" ") >++ continue >++ >+ if not can_fetch: >+ if fetched != 2: >+ if fetched == 0: >+@@ -2320,7 +2325,7 @@ >+ droppriv=actionmap[mydo]["args"][1],logfile=logfile) >+ return retval >+ >+-def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,cleanup=0,dbkey=None,use_cache=1,fetchall=0,tree="porttree"): >++def doebuild(myebuild,mydo,myroot,mysettings,debug=0,listonly=0,fetchonly=0,cleanup=0,dbkey=None,use_cache=1,fetchall=0,tree="porttree",fetchmissing=0): >+ global db >+ >+ ebuild_path = os.path.abspath(myebuild) >+@@ -2661,7 +2666,7 @@ >+ except: >+ pass >+ >+- if mydo!="manifest" and not fetch(fetchme, mysettings, listonly=listonly, fetchonly=fetchonly): >++ if mydo!="manifest" and not fetch(fetchme, mysettings, listonly=listonly, fetchonly=fetchonly, fetchmissing=fetchmissing): >+ return 1 >+ >+ if mydo=="fetch" and listonly: >diff -Nur portage.orig/portage-2.0.51.22-r3.ebuild portage/portage-2.0.51.22-r3.ebuild >--- portage.orig/portage-2.0.51.22-r3.ebuild 2005-10-15 12:28:20.000000000 +0100 >+++ portage/portage-2.0.51.22-r3.ebuild 2005-10-15 12:30:29.000000000 +0100 >@@ -26,6 +26,7 @@ > unpack ${A} > cd "${S}" > patch -p1 < ${FILESDIR}/2.0.51.22-fixes.patch >+ patch -p1 < ${FILESDIR}/2.0.51.22-fetch-missing.patch > } > > src_compile() {
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 109304
:
70692
| 70728