{"id":130,"date":"2012-12-30T19:40:17","date_gmt":"2012-12-30T17:40:17","guid":{"rendered":"http:\/\/blogs.gentoo.org\/ago\/?p=130"},"modified":"2014-08-13T16:52:18","modified_gmt":"2014-08-13T14:52:18","slug":"repoman-check-a-big-list-before-file-a-stablereq-or-keywordreq","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/ago\/2012\/12\/30\/repoman-check-a-big-list-before-file-a-stablereq-or-keywordreq\/","title":{"rendered":"Repoman-check a big list before file a STABLEREQ or KEYWORDREQ"},"content":{"rendered":"<p>Unfortunately, all times we have a big list to keyword or stabilize, repoman complains about missing packages. So, in this post I will give you the solution to avoid this problem.<\/p>\n<p>First, please download the <a href=\"http:\/\/git.overlays.gentoo.org\/gitweb\/?p=dev\/ago.git;a=blob_plain;f=script\/batch-stabilize-pretend.py;hb=HEAD\">batch-stabilize-pretend<\/a> script from <a href=\"http:\/\/git.overlays.gentoo.org\/gitweb\/?p=dev\/ago.git;a=tree\">my overlay<\/a>.<br \/>\nI&#8217;m not a python programmer but I was able to edit the script made by Pawe\u0142 Hajdan. I just deleted the bugzilla commit part, and I make the script able to print repoman full if the list is not complete.<br \/>\nThis script works only with &gt;<strong><em>=www-client\/pybugz-0.10 and you need to have &gt;=sys-apps\/portage-2.1.11.63<\/em><\/strong><\/p>\n<p>Now, to check if repoman will complain about your list, you need to do:<br \/>\n<code>.\/batch-stabilize-pretend.py --arch amd64 --repo \/home\/ago\/gentoo-x86 -i \/tmp\/yourlist<\/code><\/p>\n<p>where:<\/p>\n<ul>\n<li>batch-stabilize-pretend.py is the script (obviously);<\/li>\n<li>amd64 is the arch that you want to check. You will use ~amd64 for the keywordreq;<\/li>\n<li>\/home\/ago\/gentoo-x86 is the local copy of the CVS;<\/li>\n<li>\/tmp\/yourlist is the list which contains the packages;<\/li>\n<\/ul>\n<p><span style=\"font-size: medium\"><span style=\"line-height: 24px\">Few useful notes:<\/span><\/span><\/p>\n<p>If you want to check on some arches, you can use a simple for:<br \/>\n<code>for i in amd64 x86 sparc ppc ; do<br \/>\n.\/batch-stabilize-pretend.py --arch \"${i}\" --repo \/home\/ago\/gentoo-x86 -i \/tmp\/yourlist<br \/>\ndone<\/code><\/p>\n<p>The script will run ekeyword, so it will touch your local CVS copy of gentoo-x86. If this is not your intention, please make another copy and work there or don&#8217;t forget to run <strong><em>cvs up -C<\/em><\/strong>.<\/p>\n<p>Before doing this work, you need to run <strong><em>cvs up<\/em><\/strong> in the root of your gentoo-x86 local CVS.<\/p>\n<p>The list must be structured in this mode:<br \/>\n<code># bug #445900<br \/>\n=app-portage\/eix-0.27.4<br \/>\n=www-client\/pybugz-0.9.3<br \/>\n=dev-vcs\/cvs-1.12.12-r6<br \/>\n#and so on..<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unfortunately, all times we have a big list to keyword or stabilize, repoman complains about missing packages. So, in this post I will give you the solution to avoid this problem. First, please download the batch-stabilize-pretend script from my overlay. &hellip; <a href=\"https:\/\/blogs.gentoo.org\/ago\/2012\/12\/30\/repoman-check-a-big-list-before-file-a-stablereq-or-keywordreq\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":140,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[3],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2EaBc-26","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/130"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/users\/140"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":14,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":238,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/posts\/130\/revisions\/238"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/ago\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}