<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>97462</bug_id>
          
          <creation_ts>2005-06-30 02:03 0000</creation_ts>
          <short_desc>Add &apos;emerge metadata&apos; option to esync</short_desc>
          <delta_ts>2006-04-23 16:16:47 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Portage Development</product>
          <component>Tools</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jer@gentoo.org</reporter>
          <assigned_to>tools-portage@gentoo.org</assigned_to>
          <cc>davidpeter@web.de</cc>
    
    <cc>jer@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2005-06-30 02:03:27 0000</bug_when>
            <thetext>I share Portage through NFS and wanted to use esync to &apos;emerge metadata&apos; instead 
of &apos;emerge sync&apos; for my NFS/Portage clients (esync is useful for a cron job that 
puts legible output in your mailbox). So here&apos;s my patch for /usr/lib/esearch/
esync.py to include the -m / --metadate option.

Reproducible: Always
Steps to Reproduce:





Here&apos;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(&quot;  --webrsync&quot;) + &quot;, &quot; + darkgreen(&quot;-w&quot;)
     print &quot;    Use &apos;emerge-webrsync&apos; instead of &apos;emerge sync&apos;&quot;
     print &quot;&quot;
+    print darkgreen(&quot;  --metadata&quot;) + &quot;, &quot; + darkgreen(&quot;-m&quot;)
+    print &quot;    Use &apos;emerge metadata&apos; instead of &apos;emerge sync&apos;&quot;
+    print &quot;&quot;
     print darkgreen(&quot;  --nocolor&quot;) + &quot;, &quot; + darkgreen(&quot;-n&quot;)
     print &quot;    Don&apos;t use ANSI codes for colored output&quot;
     print &quot;&quot;
@@ -57,7 +60,7 @@
     sys.exit(0)
 
 try:
-    opts = getopt(sys.argv[1:], &quot;hwnvs&quot;, [&quot;help&quot;, &quot;webrsync&quot;, &quot;nocolor&quot;, 
&quot;verbose&quot;, &quot;nospinner&quot;])
+    opts = getopt(sys.argv[1:], &quot;hwmnvs&quot;, [&quot;help&quot;, &quot;webrsync&quot;, &quot;nocolor&quot;, 
&quot;verbose&quot;, &quot;metadata&quot;,&quot;nospinner&quot;])
 except GetoptError, error:
     print red(&quot; * Error:&quot;), error, &quot;(see&quot;, darkgreen(&quot;--help&quot;), &quot;for all 
options)&quot;
     print
@@ -70,6 +73,8 @@
         usage()
     elif arg in (&quot;-w&quot;, &quot;--webrsync&quot;):
         syncprogram = &quot;/usr/sbin/emerge-webrsync&quot;
+    elif arg in (&quot;-m&quot;, &quot;--metadata&quot;):
+        syncprogram = &quot;/usr/bin/emerge --metadata&quot;
     elif arg in (&quot;-n&quot;, &quot;--nocolor&quot;):
         eoptions = &quot;-n&quot;
         nocolor()</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-06-30 02:23:35 0000</bug_when>
            <thetext>*** Bug 97464 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2005-06-30 02:26:44 0000</bug_when>
            <thetext>Sorry about that. Here&apos;s a patch I attached to the wrong bug.

http://bugs.gentoo.org/attachment.cgi?id=62309&amp;action=view

Deeply sorry. :-(</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2005-06-30 08:00:28 0000</bug_when>
            <thetext>Created an attachment (id=62332)
This patch updates both esync and the esync man page in esearch-0.7.1

I did not update the Italian man page (&lt;it/esync.1&gt;).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>antarus@gentoo.org</who>
            <bug_when>2006-04-23 16:16:47 0000</bug_when>
            <thetext>Released in esearch-0.7.1-r1</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>62332</attachid>
            <date>2005-06-30 08:00 0000</date>
            <desc>This patch updates both esync and the esync man page in esearch-0.7.1</desc>
            <filename>esearch-0.7.1-metadata.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtdXIgZXNlYXJjaC0wLjcuMS9lbi9lc3luYy4xIGVzZWFyY2gtMC43LjEtcGF0Y2hlZC9l
bi9lc3luYy4xCi0tLSBlbi9lc3luYy4xCTIwMDUtMDItMTMgMTg6MTI6MDMuMDAwMDAwMDAwICsw
MTAwCisrKyBlbi9lc3luYy4xCTIwMDUtMDYtMzAgMTY6NDg6NDQuMDAwMDAwMDAwICswMjAwCkBA
IC0yMCw2ICsyMCw5IEBACiAuQiBcLVwtd2VicnN5bmMsIFwtdwogVXNlICdlbWVyZ2Utd2VicnN5
bmMnIGluc3RlYWQgb2YgJ2VtZXJnZSBzeW5jJwogLlRQCisuQiBcLVwtbWV0YWRhdGEsIFwtbQor
VXNlICdlbWVyZ2UgbWV0YWRhdGEnIGluc3RlYWQgb2YgJ2VtZXJnZSBzeW5jJworLlRQCiAuQiBc
LVwtbm9jb2xvciwgXC1uCiBEb24ndCB1c2UgQU5TSSBjb2RlcyBmb3IgY29sb3JlZCBvdXRwdXQK
IC5UUApkaWZmIC11ciBlc2VhcmNoLTAuNy4xL2VzeW5jLnB5IGVzZWFyY2gtMC43LjEtcGF0Y2hl
ZC9lc3luYy5weQotLS0gZXN5bmMucHkJMjAwNS0wMi0x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y
LCAiKHNlZSIsIGRhcmtncmVlbigiLS1oZWxwIiksICJmb3IgYWxsIG9wdGlvbnMpIgogICAgIHBy
aW50CkBAIC03MCw2ICs3Myw4IEBACiAgICAgICAgIHVzYWdlKCkKICAgICBlbGlmIGFyZyBpbiAo
Ii13IiwgIi0td2VicnN5bmMiKToKICAgICAgICAgc3luY3Byb2dyYW0gPSAiL3Vzci9zYmluL2Vt
ZXJnZS13ZWJyc3luYyIKKyAgICBlbGlmIGFyZyBpbiAoIi1tIiwgIi0tbWV0YWRhdGEiKToKKyAg
ICAgICAgc3luY3Byb2dyYW0gPSAiL3Vzci9iaW4vZW1lcmdlIC0tbWV0YWRhdGEiCiAgICAgZWxp
ZiBhcmcgaW4gKCItbiIsICItLW5vY29sb3IiKToKICAgICAgICAgZW9wdGlvbnMgPSAiLW4iCiAg
ICAgICAgIG5vY29sb3IoKQo=
</data>        

          </attachment>
    </bug>

</bugzilla>