Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97462 - Add 'emerge metadata' option to esync
Summary: Add 'emerge metadata' option to esync
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 97464 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-30 02:03 UTC by Jeroen Roovers (RETIRED)
Modified: 2006-04-23 16:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
This patch updates both esync and the esync man page in esearch-0.7.1 (esearch-0.7.1-metadata.patch,1.63 KB, patch)
2005-06-30 08:00 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2005-06-30 02:03:27 UTC
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()
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-30 02:23:35 UTC
*** Bug 97464 has been marked as a duplicate of this bug. ***
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2005-06-30 02:26:44 UTC
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. :-(
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2005-06-30 08:00:28 UTC
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>).
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-04-23 16:16:47 UTC
Released in esearch-0.7.1-r1