public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/grss:master commit in: bin/
Date: Sun,  9 Aug 2015 17:41:26 +0000 (UTC)	[thread overview]
Message-ID: <1439142278.65d1ee9d179df47c8a978d6feb986d3242dfafc2.blueness@gentoo> (raw)

commit:     65d1ee9d179df47c8a978d6feb986d3242dfafc2
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  9 17:44:38 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sun Aug  9 17:44:38 2015 +0000
URL:        https://gitweb.gentoo.org/proj/grss.git/commit/?id=65d1ee9d

bin/grsup: fix bugs.

 bin/grsup | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bin/grsup b/bin/grsup
index 30e43bf..5e0a70c 100755
--- a/bin/grsup
+++ b/bin/grsup
@@ -17,6 +17,8 @@
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 import copy
+import glob
+import filecmp
 import os
 import re
 import shutil
@@ -208,8 +210,9 @@ def main():
     # Copy the new make.conf to CONST.PORTAGE_CONFIGDIR
     # If a raw new make.conf exists, pick it, else pick the highest cycle no.
     newmakeconf = os.path.join(libdir, 'core/etc/portage/make.conf')
+    oldmakeconf = os.path.join(CONST.PORTAGE_CONFIGDIR, 'make.conf')
     if os.path.isfile(newmakeconf):
-        shutil.copy(newmakeconf, CONST.PORTAGE_CONFIGDIR)
+        shutil.copy(newmakeconf, oldmakeconf)
     else:
         cycled_files = {}
         for f in glob.glob('%s.*' % newmakeconf):
@@ -219,7 +222,7 @@ def main():
                 cycled_files[cycle_no] = m.group(0)
         try:
             max_cycle_no = max(cycled_files)
-            shutil.copy(cycled_files[max_cycle_no], CONST.PORTAGE_CONFIGDIR)
+            shutil.copy(cycled_files[max_cycle_no], oldmakeconf)
         except ValueError:
             pass
 


             reply	other threads:[~2015-08-09 17:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-09 17:41 Anthony G. Basile [this message]
     [not found] <1659636740.7a12e4895533aaaabbe46418c28e1c6f52c799a1.blueness@gentoo>
2022-08-04 18:12 ` [gentoo-commits] proj/grss:master commit in: bin/ Anthony G. Basile
  -- strict thread matches above, loose matches on Subject: below --
2016-05-26 13:03 Anthony G. Basile
2016-02-21 22:05 Anthony G. Basile
2015-08-09 20:06 Anthony G. Basile
2015-08-09 19:59 Anthony G. Basile
2015-08-09 19:11 Anthony G. Basile
2015-08-09 17:53 Anthony G. Basile
2015-08-09 17:21 Anthony G. Basile
2015-08-08 16:15 Anthony G. Basile
2015-08-08 16:14 Anthony G. Basile
2015-08-08 15:40 Anthony G. Basile

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=1439142278.65d1ee9d179df47c8a978d6feb986d3242dfafc2.blueness@gentoo \
    --to=blueness@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