[Lunar-bugs] [Lunar Linux 0000308]: /var/state/lunar/packages never updates if empty.
Lunar bug reports list
lunar-bugs at lunar-linux.org
Tue Aug 31 16:58:51 CEST 2010
The following issue has been CLOSED
======================================================================
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: closed
lvu installed moonbase: 20071117-SVN
Core Tools: Theedge
lvu installed [lunar|theedge]: 20070307
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2007-11-18 00:39 CET
Last Modified: 2010-08-31 16:58 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.
======================================================================
----------------------------------------------------------------------
(0000999) ratler (developer) - 2010-08-28 11:37
http://bugs.lunar-linux.org/view.php?id=308#c999
----------------------------------------------------------------------
Fixed in theedge as of commit ac134ad96f19e8d1420cac390cd2fa374f95a0e1.
Modules should now get added to packages even if the state file was empty.
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
2010-08-28 11:37 ratler Note Added: 0000999
2010-08-28 11:37 ratler Status assigned => resolved
2010-08-28 11:37 ratler Resolution open => fixed
2010-08-31 16:58 ratler Status resolved => closed
======================================================================
More information about the Lunar-bugs
mailing list