public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Dolbec" <dolsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:repoman commit in: repoman/, /
Date: Sun, 15 May 2016 05:17:39 +0000 (UTC)	[thread overview]
Message-ID: <1463289393.5a27fc487c6c16814ba7e3705042d0d144c7f7b9.dolsen@gentoo> (raw)

commit:     5a27fc487c6c16814ba7e3705042d0d144c7f7b9
Author:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun May 15 05:16:33 2016 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Sun May 15 05:16:33 2016 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=5a27fc48

repoman: Set current working directory in repoman's setup.py

Fixes issues with running it from the portage parent directory and travis.

 .travis.yml      | 5 ++---
 repoman/setup.py | 2 ++
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 576ed20..c098c4d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,8 +18,7 @@ script:
     - sudo rsync -a /tmp/install-root/. /
     - python -b -Wd -m portage.tests.runTests
     # repoman test block
-    - cd repoman && ./setup.py test
-    - ./setup.py install --root=/tmp/install-root
-    - cd ..
+    - repoman/setup.py test
+    - repoman/setup.py install --root=/tmp/install-root
     - sudo rsync -a /tmp/install-root/. /
     - python -b -Wd -m repoman.tests.runTests

diff --git a/repoman/setup.py b/repoman/setup.py
index 62c5b62..8c1e81c 100755
--- a/repoman/setup.py
+++ b/repoman/setup.py
@@ -23,6 +23,8 @@ import os.path
 import subprocess
 import sys
 
+# change teh cwd to this one
+os.chdir(os.path.dirname(os.path.realpath(__file__)))
 
 # TODO:
 # - smarter rebuilds of docs w/ 'install_docbook' and 'install_epydoc'.


             reply	other threads:[~2016-05-15  5:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-15  5:17 Brian Dolbec [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-05-15 19:35 [gentoo-commits] proj/portage:repoman commit in: repoman/, / Brian Dolbec

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=1463289393.5a27fc487c6c16814ba7e3705042d0d144c7f7b9.dolsen@gentoo \
    --to=dolsen@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