First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 97462
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage Utilities Team <tools-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jeroen Roovers <jer@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
esearch-0.7.1-metadata.patch This patch updates both esync and the esync man page in esearch-0.7.1 patch Jeroen Roovers 2005-06-30 08:00 0000 1.63 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 97462 depends on: Show dependency tree
Show dependency graph
Bug 97462 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-06-30 02:03 0000
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 From Jakub Moc 2005-06-30 02:23:35 0000 -------
*** Bug 97464 has been marked as a duplicate of this bug. ***

------- Comment #2 From Jeroen Roovers 2005-06-30 02:26:44 0000 -------
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 From Jeroen Roovers 2005-06-30 08:00:28 0000 -------
Created an attachment (id=62332) [edit]
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 From Alec Warner 2006-04-23 16:16:47 0000 -------
Released in esearch-0.7.1-r1

First Last Prev Next    No search results available      Search page      Enter new bug