I share Portage through NFS and wanted to use esync to 'emerge metadata' instead of 'emerge sync' for my NFS/Portage clients (esync is useful for a cron job that puts legible output in your mailbox). So here's my patch for /usr/lib/esearch/ esync.py to include the -m / --metadate option. Reproducible: Always Steps to Reproduce: Here's the patch for /usr/lib/esearch/esync.py (app-portage/esearch-0.7.1): --- esync.py-orig 2005-06-30 10:53:22.000000000 +0200 +++ esync.py 2005-06-30 10:55:15.000000000 +0200 @@ -44,6 +44,9 @@ print darkgreen(" --webrsync") + ", " + darkgreen("-w") print " Use 'emerge-webrsync' instead of 'emerge sync'" print "" + print darkgreen(" --metadata") + ", " + darkgreen("-m") + print " Use 'emerge metadata' instead of 'emerge sync'" + print "" print darkgreen(" --nocolor") + ", " + darkgreen("-n") print " Don't use ANSI codes for colored output" print "" @@ -57,7 +60,7 @@ sys.exit(0) try: - opts = getopt(sys.argv[1:], "hwnvs", ["help", "webrsync", "nocolor", "verbose", "nospinner"]) + opts = getopt(sys.argv[1:], "hwmnvs", ["help", "webrsync", "nocolor", "verbose", "metadata","nospinner"]) except GetoptError, error: print red(" * Error:"), error, "(see", darkgreen("--help"), "for all options)" print @@ -70,6 +73,8 @@ usage() elif arg in ("-w", "--webrsync"): syncprogram = "/usr/sbin/emerge-webrsync" + elif arg in ("-m", "--metadata"): + syncprogram = "/usr/bin/emerge --metadata" elif arg in ("-n", "--nocolor"): eoptions = "-n" nocolor()
*** Bug 97464 has been marked as a duplicate of this bug. ***
Sorry about that. Here's a patch I attached to the wrong bug. http://bugs.gentoo.org/attachment.cgi?id=62309&action=view Deeply sorry. :-(
Created attachment 62332 [details, diff] This patch updates both esync and the esync man page in esearch-0.7.1 I did not update the Italian man page (<it/esync.1>).
Released in esearch-0.7.1-r1