Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 289041 Details for
Bug 340475
repoman does split signed Manifest commits unnecessarily
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
portage-repoman-split-manifest-r2.patch
portage-repoman-split-manifest-r2.patch (text/plain), 1.75 KB, created by
Nathan Phillip Brink (binki) (RETIRED)
on 2011-10-07 05:01:37 UTC
(
hide
)
Description:
portage-repoman-split-manifest-r2.patch
Filename:
MIME Type:
Creator:
Nathan Phillip Brink (binki) (RETIRED)
Created:
2011-10-07 05:01:37 UTC
Size:
1.75 KB
patch
obsolete
>From 4c06744fb340a785848c9af1736ec7c59d373d2c Mon Sep 17 00:00:00 2001 >From: Nathan Phillip Brink <binki@gentoo.org> >Date: Fri, 7 Oct 2011 05:00:46 +0000 >Subject: [PATCH] Don't do a split signed Manifest commit when no headers will change. Fixes bug #340475. > >--- > bin/repoman | 15 +++++++++------ > 1 files changed, 9 insertions(+), 6 deletions(-) > >diff --git a/bin/repoman b/bin/repoman >index 7943f54..6b6a197 100755 >--- a/bin/repoman >+++ b/bin/repoman >@@ -2435,10 +2435,11 @@ else: > print("* aborting commit.") > sys.exit(1) > >- if vcs in ('cvs', 'svn') and (myupdates or myremoved): >+ # Handle the case where committed files have keywords which >+ # will change and need a priming commit before the Manifest >+ # can be committed. >+ if (myupdates or myremoved) and myheaders: > myfiles = myupdates + myremoved >- if not myheaders and not sign_manifests: >- myfiles += mymanifests > fd, commitmessagefile = tempfile.mkstemp(".repoman.msg") > mymsg = os.fdopen(fd, "wb") > mymsg.write(_unicode_encode(commitmessage)) >@@ -2539,7 +2540,6 @@ else: > portage.util.write_atomic(x, b''.join(mylines), > mode='wb') > >- manifest_commit_required = True > if vcs in ('cvs', 'svn') and (myupdates or myremoved): > myfiles = myupdates + myremoved > for x in range(len(myfiles)-1, -1, -1): >@@ -2647,10 +2647,13 @@ else: > level=logging.ERROR, noiselevel=-1) > sys.exit(retval) > >- if vcs in ['git', 'bzr', 'hg'] or manifest_commit_required or signed: >+ if True: > > myfiles = mymanifests[:] >- if vcs in ['git', 'bzr', 'hg']: >+ # If there are no header (SVN/CVS keywords) changes in >+ # the files, this Manifest commit must include the >+ # other (yet uncommitted) files. >+ if not myheaders: > myfiles += myupdates > myfiles += myremoved > myfiles.sort() >-- >1.7.3.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 340475
:
289035
|
289039
| 289041