• Need a way for repeated choices in "select" questions

    From Anton Zinoviev@1:229/2 to Joey Hess on Thu Aug 12 16:30:10 2004
    XPost: linux.debian.maint.boot
    From: [email protected]

    Package: debconf,cdebconf

    The questions with type "select" are not supposed to be used in the way
    partman uses it. They doesn't allow to choose among repeated entries.
    This causes problems when two partitions are so similar that partman
    prints two equal lines for them - typicaly two partitions with same
    size and same number on two disks with equal geometry or RAID or LVM
    volumes.

    On Wed, Aug 11, 2004 at 04:29:17PM -0300, Joey Hess wrote:

    I thought I had seen more recent reports of #241785.

    Have you seen #263046? I don't know if it's the same bug, but it's
    similar.

    Finaly I understand what happens. I am afraid that all ways to fix this
    bug will uglyfy the main screen of partman:

    IDE1 master - Seagate U Series 40810 (40.0 GB)
    hda3 primary 2.1 GB B F ext3 /usr
    a pri/log 4.4 GB FREE SPACE
    hda6 logical 3.6 GB
    hda5 logical 10.0 GB ext3
    hda8 logical 19.9 GB K ext2 /home
    IDE2 master - Maxtor 6Y4L0 (14.4 GB)
    hdc5 logical 10.0 GB ext3
    b pri/log 4.4 GB FREE SPACE
    LVM VG probgr, LV home - 4.2 MB
    probgr/home 4.2 MB reiserfs

    Without this the lines for hda5 and hdc5 will be equal as well as the
    lines for the free spaces.

    Anton Zinoviev


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Joey Hess@1:229/2 to Anton Zinoviev on Thu Aug 12 17:40:09 2004
    XPost: linux.debian.maint.boot
    From: [email protected]

    Anton Zinoviev wrote:
    Package: debconf,cdebconf

    The questions with type "select" are not supposed to be used in the way partman uses it. They doesn't allow to choose among repeated entries.
    This causes problems when two partitions are so similar that partman
    prints two equal lines for them - typicaly two partitions with same
    size and same number on two disks with equal geometry or RAID or LVM
    volumes.

    If you really wanted to you could possibly use cdebconf's transled list features to provide an "english translation" that uses the same text for
    items while being backed by a real list that uses unique lines for
    everything. I don't know if that would work, it probably depend's in the implementation, and possibly on the frontend (this would be impossible
    to do with debconf's dialog frontend, for instance). I doubt you'll get
    better support from either debconf.

    On Wed, Aug 11, 2004 at 04:29:17PM -0300, Joey Hess wrote:

    I thought I had seen more recent reports of #241785.

    Have you seen #263046? I don't know if it's the same bug, but it's
    similar.

    Finaly I understand what happens. I am afraid that all ways to fix this
    bug will uglyfy the main screen of partman:

    IDE1 master - Seagate U Series 40810 (40.0 GB)
    hda3 primary 2.1 GB B F ext3 /usr
    a pri/log 4.4 GB FREE SPACE
    hda6 logical 3.6 GB
    hda5 logical 10.0 GB ext3
    hda8 logical 19.9 GB K ext2 /home
    IDE2 master - Maxtor 6Y4L0 (14.4 GB)
    hdc5 logical 10.0 GB ext3
    b pri/log 4.4 GB FREE SPACE
    LVM VG probgr, LV home - 4.2 MB
    probgr/home 4.2 MB reiserfs

    Without this the lines for hda5 and hdc5 will be equal as well as the
    lines for the free spaces.

    Have you considered just bringing the "hda" down to the free space
    line?

    hda3 primary 2.1 GB B F ext3 /usr
    hda pri/log 4.4 GB FREE SPACE
    hda6 logical 3.6 GB
    hda5 logical 10.0 GB ext3
    hda8 logical 19.9 GB K ext2 /home
    IDE2 master - Maxtor 6Y4L0 (14.4 GB)
    hdc5 logical 10.0 GB ext3
    hdc pri/log 4.4 GB FREE SPACE
    LVM VG probgr, LV home - 4.2 MB
    probgr/home 4.2 MB reiserfs

    --
    see shy jo

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.5 (GNU/Linux)

    iD8DBQFBG4tQd8HHehbQuO8RAsODAKCJ6JpFwyFwIM6b3UuiwY5kOr0wDQCdGF6R BGlW4eufhnoPvvf0ziXnIdY=
    =HGt+
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Anton Zinoviev@1:229/2 to Joey Hess on Thu Aug 12 18:20:06 2004
    XPost: linux.debian.maint.boot
    From: [email protected]

    On Thu, Aug 12, 2004 at 12:22:56PM -0300, Joey Hess wrote:

    If you really wanted to you could possibly use cdebconf's transled list features to provide an "english translation" that uses the same text for items while being backed by a real list that uses unique lines for everything. I don't know if that would work, it probably depend's in the implementation, and possibly on the frontend (this would be impossible
    to do with debconf's dialog frontend, for instance).

    We don't know how many items are necessary (how many partitions there
    are). Or maybe I don't know this feature well.

    I doubt you'll get better support from either debconf.

    It would be enough if besides $RET there is another variable holding the
    number of the chosen choice. I don't know how this relates with the
    debconf protocol.

    Have you considered just bringing the "hda" down to the free space
    line?

    This is not necessarily unique, but hda-1, hda-2 are possible.

    Anton Zinoviev



    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)