* [PATCH] ketchup - support new -post releases
@ 2004-08-20 17:06 Dave Hansen
2004-08-20 19:38 ` ketchup versus patch-kernel Sam Ravnborg
2004-08-21 14:14 ` [PATCH] ketchup - support new -post releases Matt Mackall
0 siblings, 2 replies; 4+ messages in thread
From: Dave Hansen @ 2004-08-20 17:06 UTC (permalink / raw)
To: Matt Mackall; +Cc: Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 232 bytes --]
Since 2.6.8.1 came out, I'm sure a lot of automated tools stopped
working, ketchup included.
I'm sure this patch isn't complete, but it does work to patch from 2.6.8
-> 2.6.8.1 or 2.6.8.1-mm*, so it is at least a start.
-- Dave
[-- Attachment #2: ketchup-postvers.patch --]
[-- Type: text/x-patch, Size: 2333 bytes --]
--- ketchup-0.8.orig 2004-08-16 15:42:28.000000000 -0700
+++ ketchup-0.8 2004-08-20 10:03:05.000000000 -0700
@@ -126,35 +126,42 @@
return r
def pre(ver):
- try: return re.match(r'\d+\.\d+\.\d+-((rc|pre)\d+)', ver).group(1)
+ try: return re.match(r'\d+\.\d+\.\d+(\.\d+)?-((rc|pre)\d+)', ver).group(2)
+ except: return None
+
+def post(ver):
+ try: return re.match(r'(\d+\.\d+\.\d+\.\d+)', ver).group(1)
except: return None
def pretype(ver):
- try: return re.match(r'\d+\.\d+\.\d+-((rc|pre)\d+)', ver).group(2)
+ try: return re.match(r'\d+\.\d+\.\d+(\.\d+)?-((rc|pre)\d+)', ver).group(3)
except: return None
def prenum(ver):
- try: return int(re.match(r'\d+\.\d+\.\d+-((rc|pre)(\d+))', ver).group(3))
+ try: return int(re.match(r'\d+\.\d+\.\d+-((rc|pre)(\d+))', ver).group(4))
except: return None
def prebase(ver):
- return re.match(r'(\d+\.\d+\.\d+(-(rc|pre)\d+)?)', ver).group(1)
+ return re.match(r'(\d+\.\d+\.\d+((-(rc|pre)|\.)\d+)?)', ver).group(1)
def base(ver):
- return "%s.%s" % (tree(ver), rev(ver))
+ if post(ver):
+ return prebase(ver)
+ else:
+ return "%s.%s" % (tree(ver), rev(ver))
def forkname(ver):
- try: return re.match(r'\d+.\d+.\d+(-(rc|pre)\d+)?(-(\w+?)\d+)?',
- ver).group(4)
+ try: return re.match(r'\d+.\d+.\d+(\.\d+)?(-(rc|pre)\d+)?(-(\w+?)\d+)?',
+ ver).group(5)
except: return None
def forknum(ver):
- try: return int(re.match(r'\d+.\d+.\d+(-(rc|pre)\d+)?(-(\w+?)(\d+))?',
- ver).group(5))
+ try: return int(re.match(r'\d+.\d+.\d+(\.\d+)?(-(rc|pre)\d+)?(-(\w+?)(\d+))?',
+ ver).group(6))
except: return None
def fork(ver):
- try: return re.match(r'\d+.\d+.\d+(-(rc|pre)\d+)?(-(\w+))?', ver).group(4)
+ try: return re.match(r'\d+.\d+.\d+(\.\d+)?(-(rc|pre)\d+)?(-(\w+))?', ver).group(4)
except: return None
def get_ver(makefile):
@@ -484,6 +491,11 @@
if pre(a):
apply_patch(a, 1)
a = base(a)
+ # need a loop here to apply all of the post patches
+ if post(b):
+ apply_patch(prebase(b), 0)
+ # need a loop here to back out any a post patches
+
ra, rb = rev(a), rev(b)
if ra > rb:
for r in range(ra, rb, -1):
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ketchup versus patch-kernel
2004-08-20 19:38 ` ketchup versus patch-kernel Sam Ravnborg
@ 2004-08-20 17:47 ` Dave Hansen
0 siblings, 0 replies; 4+ messages in thread
From: Dave Hansen @ 2004-08-20 17:47 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: Randy.Dunlap, Matt Mackall, Linux Kernel Mailing List
On Fri, 2004-08-20 at 12:38, Sam Ravnborg wrote:
> On Fri, Aug 20, 2004 at 10:06:48AM -0700, Dave Hansen wrote:
> > Since 2.6.8.1 came out, I'm sure a lot of automated tools stopped
> > working, ketchup included.
>
> Can someone please explain to me what is the difference between
> patch-kernel and ketchup?
In my view, there's no basic difference in their intention: turn one
kernel version into another. Although, ketchup does handle a few more
things like downloads, gpg, and a wider variety of trees like -mm, -mjb
and -tiny.
-- Dave
^ permalink raw reply [flat|nested] 4+ messages in thread
* ketchup versus patch-kernel
2004-08-20 17:06 [PATCH] ketchup - support new -post releases Dave Hansen
@ 2004-08-20 19:38 ` Sam Ravnborg
2004-08-20 17:47 ` Dave Hansen
2004-08-21 14:14 ` [PATCH] ketchup - support new -post releases Matt Mackall
1 sibling, 1 reply; 4+ messages in thread
From: Sam Ravnborg @ 2004-08-20 19:38 UTC (permalink / raw)
To: Dave Hansen, Randy.Dunlap, Matt Mackall
Cc: Matt Mackall, Linux Kernel Mailing List
On Fri, Aug 20, 2004 at 10:06:48AM -0700, Dave Hansen wrote:
> Since 2.6.8.1 came out, I'm sure a lot of automated tools stopped
> working, ketchup included.
Can someone please explain to me what is the difference between
patch-kernel and ketchup?
With difference I ask for what problem they solve (and mayby how).
I know very well ketchup uses phython - thats an implementation detail.
Rationale behind the question is if we should include both patch-kernel
and ketchup in the kernel.
Sam
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ketchup - support new -post releases
2004-08-20 17:06 [PATCH] ketchup - support new -post releases Dave Hansen
2004-08-20 19:38 ` ketchup versus patch-kernel Sam Ravnborg
@ 2004-08-21 14:14 ` Matt Mackall
1 sibling, 0 replies; 4+ messages in thread
From: Matt Mackall @ 2004-08-21 14:14 UTC (permalink / raw)
To: Dave Hansen; +Cc: Linux Kernel Mailing List, Linus Torvalds, Andrew Morton
On Fri, Aug 20, 2004 at 10:06:48AM -0700, Dave Hansen wrote:
> Since 2.6.8.1 came out, I'm sure a lot of automated tools stopped
> working, ketchup included.
>
> I'm sure this patch isn't complete, but it does work to patch from 2.6.8
> -> 2.6.8.1 or 2.6.8.1-mm*, so it is at least a start.
Unfortunately, we don't yet know how deltas from x.y.z.1 to x.y.z.2
will be handled in the archives, eg relative to x.y.z or incrementally.
--
Mathematics is the supreme nostalgia of our time.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-21 14:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-20 17:06 [PATCH] ketchup - support new -post releases Dave Hansen
2004-08-20 19:38 ` ketchup versus patch-kernel Sam Ravnborg
2004-08-20 17:47 ` Dave Hansen
2004-08-21 14:14 ` [PATCH] ketchup - support new -post releases Matt Mackall
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.