summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-01-16 02:19:10 +0000
committerZac Medico <zmedico@gentoo.org>2007-01-16 02:19:10 +0000
commit9efcdda5e4fdd661918c7e7c055ab832c5912048 (patch)
treeb3b9a1fe85730ea00bb576f9c08a10819c74fcb8 /bin
parente5609f2c7c53a261c65d79371eab43537420385d (diff)
downloadportage-9efcdda5e4fdd661918c7e7c055ab832c5912048.tar.gz
portage-9efcdda5e4fdd661918c7e7c055ab832c5912048.tar.bz2
portage-9efcdda5e4fdd661918c7e7c055ab832c5912048.zip
Make repoman commit removals together with the other changes (instead of with the final Manifest commit).
svn path=/main/trunk/; revision=5666
Diffstat (limited to 'bin')
-rwxr-xr-xbin/repoman11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/repoman b/bin/repoman
index ef2ab8536..6db67a16d 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -40,6 +40,7 @@ import codecs
from portage_manifest import Manifest
from portage_exception import ParseError
+from portage_exec import spawn
from output import bold, darkgreen, darkred, green, nocolor, red, turquoise, yellow
@@ -1597,7 +1598,8 @@ else:
except AttributeError:
print "Failed to insert portage version in message!"
commitmessage+="\n(Portage version: Unknown)"
- if myupdates:
+ if myupdates or myremoved:
+ myfiles = myupdates + myremoved
unlinkfile=1
commitmessagefile=tempfile.mktemp(".repoman.msg")
if os.path.exists(commitmessagefile):
@@ -1615,9 +1617,12 @@ else:
retval = None
if "--pretend" in myoptions:
- print "(/usr/bin/cvs -q commit -F "+ commitmessagefile +" "+ " ".join(myupdates)+")"
+ print "(/usr/bin/cvs -q commit -F %s %s)" % \
+ (commitmessagefile, " ".join(myfiles))
else:
- retval=os.system("/usr/bin/cvs -q commit -F "+ commitmessagefile + " " +" ".join(myupdates))
+ retval = spawn(["/usr/bin/cvs", "-q", "commit",
+ "-F", commitmessagefile] + myfiles,
+ env=repoman_settings.environ())
if retval:
print "!!! Exiting on cvs (shell) error code:",retval
sys.exit(retval)