Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 27271 Details for
Bug 44526
sync ebuilds of installed packages only
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Diff of patched emerge to only sync ebuilds of installed packages
emerge.diff (text/plain), 1.67 KB, created by
Tim Cera
on 2004-03-12 19:27:16 UTC
(
hide
)
Description:
Diff of patched emerge to only sync ebuilds of installed packages
Filename:
MIME Type:
Creator:
Tim Cera
Created:
2004-03-12 19:27:16 UTC
Size:
1.67 KB
patch
obsolete
>*** emerge Fri Mar 12 22:12:01 2004 >--- emerge.local Wed Mar 3 06:34:33 2004 >*************** >*** 98,103 **** >--- 98,104 ---- > "--onlydeps", "--pretend", > "--quiet", "--resume", > "--searchdesc", "--selective", >+ "--syncinstalled", > "--skipfirst", > "--tree", > "--update", "--upgradeonly", >*************** >*** 2030,2038 **** > else: > print "!!! RSYNC_EXCLUDEFROM specified, but file does not exist." > > if portage.settings.has_key("RSYNC_RATELIMIT"): > rsync_flags.append("--bwlimit="+portage.settings["RSYNC_RATELIMIT"]) >- > rsynccommand = "/usr/bin/rsync " + string.join(rsync_flags, " ") > > servertimestampdir = portage.settings["PORTAGE_CACHEDIR"]+"/" >--- 2031,2055 ---- > else: > print "!!! RSYNC_EXCLUDEFROM specified, but file does not exist." > >+ if "--syncinstalled" in myopts: >+ rs_tmp = "/tmp/rsync_include" >+ dirs_only = portage.db["/"]["vartree"].getallnodes() >+ # ending "/**" will match all of the files in the >+ # directory and any subdirectories. >+ dirs_only = ["/" + x + "/**" for x in dirs_only] >+ # write the file of directories to update >+ f = open(rs_tmp, "w") >+ for dir in dirs_only: >+ f.write(dir + "\n") >+ f.close() >+ # add rsync flags >+ rsync_flags.append("--include='*/'") >+ rsync_flags.append("--include='timestamp.chk'") >+ rsync_flags.append("--include-from=%s" % (rs_tmp)) >+ rsync_flags.append("--exclude='*'") >+ > if portage.settings.has_key("RSYNC_RATELIMIT"): > rsync_flags.append("--bwlimit="+portage.settings["RSYNC_RATELIMIT"]) > rsynccommand = "/usr/bin/rsync " + string.join(rsync_flags, " ") > > servertimestampdir = portage.settings["PORTAGE_CACHEDIR"]+"/"
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 44526
: 27271