public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexis Ballier" <aballier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/rospkg/files/, dev-python/rospkg/
Date: Tue, 28 Feb 2017 11:27:02 +0000 (UTC)	[thread overview]
Message-ID: <1488281211.b74bbdb103793752fe430918e31a13825c58fc1b.aballier@gentoo> (raw)

commit:     b74bbdb103793752fe430918e31a13825c58fc1b
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 28 11:04:00 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Tue Feb 28 11:26:51 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b74bbdb1

dev-python/rospkg: strip ros_packages/ from path when updating the cache

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-python/rospkg/files/gentoo.patch                      | 15 +++++++++++++++
 .../rospkg/{rospkg-9999.ebuild => rospkg-1.1.0-r1.ebuild} |  1 +
 dev-python/rospkg/rospkg-9999.ebuild                      |  1 +
 3 files changed, 17 insertions(+)

diff --git a/dev-python/rospkg/files/gentoo.patch b/dev-python/rospkg/files/gentoo.patch
new file mode 100644
index 0000000000..5a9e7738b3
--- /dev/null
+++ b/dev-python/rospkg/files/gentoo.patch
@@ -0,0 +1,15 @@
+Strip ros_packages/ from paths. ros_packages is only for avoiding to crawl the
+whole /usr but the real one in the path without it.
+
+Index: rospkg-1.1.0/src/rospkg/rospack.py
+===================================================================
+--- rospkg-1.1.0.orig/src/rospkg/rospack.py
++++ rospkg-1.1.0/src/rospkg/rospack.py
+@@ -59,6 +59,7 @@ def list_by_path(manifest_name, path, ca
+     path = os.path.abspath(path)
+     basename = os.path.basename
+     for d, dirs, files in os.walk(path, topdown=True, followlinks=True):
++        d = d.replace('ros_packages/', '')
+         if 'CATKIN_IGNORE' in files:
+             del dirs[:]
+             continue  # leaf

diff --git a/dev-python/rospkg/rospkg-9999.ebuild b/dev-python/rospkg/rospkg-1.1.0-r1.ebuild
similarity index 96%
copy from dev-python/rospkg/rospkg-9999.ebuild
copy to dev-python/rospkg/rospkg-1.1.0-r1.ebuild
index 56908705af..6ed953cac5 100644
--- a/dev-python/rospkg/rospkg-9999.ebuild
+++ b/dev-python/rospkg/rospkg-1.1.0-r1.ebuild
@@ -37,6 +37,7 @@ DEPEND="${RDEPEND}
 		dev-python/coverage[${PYTHON_USEDEP}]
 	)
 "
+PATCHES=( "${FILESDIR}/gentoo.patch" )
 
 python_test() {
 	nosetests --with-coverage --cover-package=rospkg --with-xunit test || die

diff --git a/dev-python/rospkg/rospkg-9999.ebuild b/dev-python/rospkg/rospkg-9999.ebuild
index 56908705af..6ed953cac5 100644
--- a/dev-python/rospkg/rospkg-9999.ebuild
+++ b/dev-python/rospkg/rospkg-9999.ebuild
@@ -37,6 +37,7 @@ DEPEND="${RDEPEND}
 		dev-python/coverage[${PYTHON_USEDEP}]
 	)
 "
+PATCHES=( "${FILESDIR}/gentoo.patch" )
 
 python_test() {
 	nosetests --with-coverage --cover-package=rospkg --with-xunit test || die


             reply	other threads:[~2017-02-28 11:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-28 11:27 Alexis Ballier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-01-24 20:20 [gentoo-commits] repo/gentoo:master commit in: dev-python/rospkg/files/, dev-python/rospkg/ Jakov Smolić
2020-04-14 12:54 Alexis Ballier
2020-03-29  7:31 Michał Górny
2019-12-11 15:26 Alexis Ballier
2016-10-07 15:55 Alexis Ballier
2016-02-23 18:38 Alexis Ballier
2015-09-16 21:33 Alexis Ballier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1488281211.b74bbdb103793752fe430918e31a13825c58fc1b.aballier@gentoo \
    --to=aballier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox