[Lunar-bugs] [Lunar Linux 0000308]: /var/state/lunar/packages never updates if empty.
Lunar bug reports list
lunar-bugs at lunar-linux.org
Sat Aug 28 11:12:30 CEST 2010
The following issue has been ASSIGNED.
======================================================================
http://bugs.lunar-linux.org/view.php?id=308
======================================================================
Reported By: Striker
Assigned To: ratler
======================================================================
Project: Lunar Linux
Issue ID: 308
Category: theedge
Reproducibility: always
Severity: minor
Priority: low
Status: assigned
lvu installed moonbase: 20071117-SVN
Core Tools: Theedge
lvu installed [lunar|theedge]: 20070307
======================================================================
Date Submitted: 2007-11-18 00:39 CET
Last Modified: 2010-08-28 11:12 CEST
======================================================================
Summary: /var/state/lunar/packages never updates if empty.
Description:
Some bad logic within the add_module function causes it to fail permanently
and silently whenever the packages file is empty (I'm playing with a 32bit
chroot).
The culprit is on line 512 of modules.lunar in the add_module function:
grep -v "^$1:" $MODULE_STATUS_BACKUP > $MODULE_STATUS 2>/dev/null &&
The logic in the line is such that if the file is empty, and since the -v
switch is used on grep, there are *no* matching lines, and grep returns a
non-zero status in turn causing the entire function to exit before it
inserts the new module information into the file.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2007-11-18 00:39 Striker New Issue
2007-11-18 00:39 Striker Status new => assigned
2007-11-18 00:39 Striker Assigned To => sofar
2007-11-18 00:39 Striker Moonbase Version => 20071117-SVN
2007-11-18 00:39 Striker Core Tools => Theedge
2007-11-18 00:39 Striker Core Tools Version => 20070307
2010-08-28 11:12 ratler Assigned To sofar => ratler
======================================================================
More information about the Lunar-bugs
mailing list