Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: Patch against 1.7.4

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Back to topic list

Re: Patch against 1.7.4

Reply

Author Pauline Middelink <middelink at polyware dot nl>
Full name Pauline Middelink <middelink at polyware dot nl>
Date 2006-08-11 09:00:26 PDT
Message On Fri, 11 Aug 2006 around 09:31:08 -0400, Jack Neely wrote:
> Pauline,
>
> Umm...I think you forgot to include the users.py file. :-)

I'm afraid I forgot more. The exception handeling is syntaxicly
wrong :(

If you forgive me, here is a snipped code that does work.

(api/registration.py: line 200
----------
    for (pkg) in package_list:
        if first:
            try:
                (name,version,releas​e,epoch,arch,cookie)​ = pkg
            except Exception, e:
                first = 0
                (name,version,release,epoch) = pkg
        else:
            (name,version,release,epoch) = pkg

        p.addPackage(subscri​bedChans,name,versio​n,release,epoch)
    return 0
----------

I also found the problem people had getting a list of compatible
channels. In function setupBaseChannel, you need to compare
    PROFILE.os_release = CHANNEL.osrelease, not
    PROFILE.release_name = CHANNEL.osrelease

To make matters 'worse', I added a small function, getArch to
pysqlite, so I could compare not PROFILE.architecture, but
getArch(PROFILE.architecture), thereby having the basechannel
compatible with its compatible architectures.

I will send a complete patch when i'm home.

    Met vriendelijke groet,
        Pauline Middelink
--
GPG Key fingerprint = 2D5B 87A7 DDA6 0378 5DEA BD3B 9A50 B416 E2D0 C3C2
For more details look at my website http://www.polyware.​nl/~middelink
Attachments

« Previous message in topic | 5 of 9 | Next message in topic »

Messages

Show all messages in topic

Patch against 1.7.4 Pauline Middelink <middelink at polyware dot nl> Pauline Middelink <middelink at polyware dot nl> 2006-08-11 03:42:51 PDT
     Re: Patch against 1.7.4 theslack Jack Neely 2006-08-11 06:20:45 PDT
         Re: Patch against 1.7.4 Pauline Middelink <middelink at polyware dot nl> Pauline Middelink <middelink at polyware dot nl> 2006-08-11 09:14:10 PDT
     Re: Patch against 1.7.4 theslack Jack Neely 2006-08-11 06:31:08 PDT
         Re: Patch against 1.7.4 Pauline Middelink <middelink at polyware dot nl> Pauline Middelink <middelink at polyware dot nl> 2006-08-11 09:00:26 PDT
         Re: Patch against 1.7.4 - update Pauline Middelink <middelink at polyware dot nl> Pauline Middelink <middelink at polyware dot nl> 2006-08-11 09:43:42 PDT
         Re: Patch against 1.7.4 Pauline Middelink <middelink at polyware dot nl> Pauline Middelink <middelink at polyware dot nl> 2006-08-11 10:18:15 PDT
             Re: Patch against 1.7.4 Pauline Middelink <middelink at polyware dot nl> Pauline Middelink <middelink at polyware dot nl> 2006-08-11 10:20:03 PDT
                 Re: Patch against 1.7.4 theslack Jack Neely 2006-08-11 10:33:02 PDT
Messages per page: