Gentoo Archives: gentoo-commits

From: "Andrew Gaffney (agaffney)" <agaffney@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gli r1889 - in trunk: . src
Date: Fri, 04 Apr 2008 12:03:00
Message-Id: E1JhkdF-0003HY-UL@stork.gentoo.org
1 Author: agaffney
2 Date: 2008-04-04 12:02:57 +0000 (Fri, 04 Apr 2008)
3 New Revision: 1889
4
5 Modified:
6 trunk/ChangeLog
7 trunk/src/Partitioning.py
8 Log:
9 Modify order of extended check in partitioning code so that it works
10
11 Modified: trunk/ChangeLog
12 ===================================================================
13 --- trunk/ChangeLog 2008-04-03 21:52:17 UTC (rev 1888)
14 +++ trunk/ChangeLog 2008-04-04 12:02:57 UTC (rev 1889)
15 @@ -2,6 +2,9 @@
16 # Copyright 2005-2008 Gentoo Foundation; Distributed under the GPL v2
17 # $Id: $
18
19 + 04 Apr 2008; Andrew Gaffney <agaffney@g.o> src/Partitioning.py:
20 + Modify order of extended check in partitioning code so that it works
21 +
22 03 Apr 2008; Andrew Gaffney <agaffney@g.o> src/GLIPortage.py:
23 sync dynamic-stage3 code in GLIPortage with GLIArch
24
25
26 Modified: trunk/src/Partitioning.py
27 ===================================================================
28 --- trunk/src/Partitioning.py 2008-04-03 21:52:17 UTC (rev 1888)
29 +++ trunk/src/Partitioning.py 2008-04-04 12:02:57 UTC (rev 1889)
30 @@ -221,16 +221,17 @@
31 # apple_bootstrap is a "magic" hfs
32 if fs == "apple_bootstrap":
33 fs = "hfs"
34 - # grab relevant parted filesystemtype object
35 - if fs:
36 - fstype = fs_types[fs]
37 # determine correct partition type
38 parttype = "primary"
39 if fs == "extended":
40 fstype = None
41 parttype = "extended"
42 - elif free_part.is_logical():
43 - parttype = "logical"
44 + else:
45 + # grab relevant parted filesystemtype object
46 + if fs:
47 + fstype = fs_types[fs]
48 + if free_part.is_logical():
49 + parttype = "logical"
50 # figure out start/end sectors
51 start = free_part['start'] + self._megabytes_to_sectors(pregap)
52 end = start + self._megabytes_to_sectors(mb)
53
54 --
55 gentoo-commits@l.g.o mailing list