First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 97464
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 97462
Assigned To: Gentoo Linux bug wranglers <bug-wranglers@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jeroen Roovers <jer@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
esync-metadata.patch Patch for /usr/lib/esearch/esync.py patch Jeroen Roovers 2005-06-30 02:25 0000 1.18 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

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

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


Not eligible to see or edit group visibility for this bug.






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


Description:   Opened: 2005-06-30 02:22 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 (RETIRED) 2005-06-30 02:23:35 0000 -------

*** This bug has been marked as a duplicate of 97462 ***

------- Comment #2 From Jeroen Roovers 2005-06-30 02:25:10 0000 -------
Created an attachment (id=62309) [details]
Patch for /usr/lib/esearch/esync.py

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