Your message dated Tue, 15 Jun 2010 16:02:09 +0000
with message-id <[email protected]>
and subject line Bug#583629: fixed in bsdmainutils 8.0.12
has caused the Debian Bug report #583629,
regarding calendar.judaic is out of date
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
583629: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=583629
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bsdmainutils
Version: 8.0.11
Severity: normal
Tags: patch
File: /usr/share/calendar/calendar.judaic

  calendar.judaic was last updated in 2007.  Due to the nature of
the Jewish calendar, it renders the file unusable.  To address the
difficulties facing the maintainer, a python script is included.  This
script offers the maintainer a way to create the file as required.
The script is not limited to a single year.  Just enter the desired
year as an argument in the command line.  I suggest to keep this
script in the Debian directory of the source package.

$ cat calendarJudaic.py
#! /usr/bin/python
# Filename: calendarJudaic.py
#
# License: no warranty close + no license (public domain)
#
# Creates a calendar.judaic file, which is suitable for inclusion
# in Debian's bsdmainutils package.  Up to the introductory of
# this script the calendar.judaic file was not updated regularly.
# Probably because updating it is time consuming.  This python
# script let anyone create that file, for any year.  Its output is
# written to stdout.  It requires the libhdate-python package.
# A small part of the holidays might require manual editing
# because the state of Israel modifies the actual date by a few
# days due to various considerations.

# References:
# http://www.mail-archive.com/[email protected]/msg58169.html
# http://www.mail-archive.com/[email protected]/msg58321.html
# http://www.mail-archive.com/[email protected]/msg58451.html


from    string    import  Template
import  hdate,  optparse,  sys,  time


def main():

  description = '''Description:
Creates a calendar.judaic file, which is suitable for inclusion
in Debian's bsdmainutils package.  Up to the introductory of
this script the calendar.judaic file was not updated regulary.
Probably because updating it is time consuming.  This python
script let anyone create that file, for any year.  Its output is
written to stdout.  It requires the libhdate-python package.
A small part of the holydays might require manual editing
because the state of Israel modifies the actual date by a few
days due to various considerations.
'''
  usage = "Usage:    %prog [year]\n"\
          "          %prog [--help|--version]\n"\
          "\n"\
          "Example:  %prog"
  version = "29-May-2010"
  parser = optparse.OptionParser(description=description,
                                 usage=usage, version=version)
  (options, args) = parser.parse_args()
  if len(args)> 1:
    parser.error("\n  " + str(len(args)) + " arguments were "
        "given.  At most 1, an integer represnting a year, "
        "is expected."
                )
  elif len(args) == 1:
      # An integer represnting a year is expected.
      try:
          year = int(args[0])
      except ValueError:
          parser.error("\n  Could not convert the argument " + args[0]
            + ", which should represent a year, to an integer."
                      )
  else:  # len(args) == 0, no args were given.  Use the current year.
    year = time.localtime().tm_year

  h = hdate.Hdate()

  template_for_header = '''/*
 * Judaic Calendar. Created by calendar.judaic.py.
 * Collaboratively authored by [email protected].
 *
 * $$Debian GNU\Linux$$
 *
 */

/*
 * $$Id: calendarJudaic.py,v ${PLACE_HOLDER_FOR_VERSION}$$
 */

#ifndef _calendar_judaic_
#define _calendar_judaic_

LANG=UTF-8

/*
 * Jewish calendar for the CE year ${PLACE_HOLDER_FOR_THR_CE_YEAR}
 * ${PLACE_HOLDER_FOR_THE_JEWISH_START_OF_THE_CE_YEAR} - 
${PLACE_HOLDER_FOR_THE_JEWISH_END_OF_THE_CE_YEAR}
 */

'''

  footer = '''

#endif /* !_calendar_judaic_ */'''

  substitutions_for_header = {
      'PLACE_HOLDER_FOR_VERSION' : version,
      'PLACE_HOLDER_FOR_THR_CE_YEAR' : str(year)
                               }
  h.set_gdate(1, 1, year)
  substitutions_for_header[
      'PLACE_HOLDER_FOR_THE_JEWISH_START_OF_THE_CE_YEAR'] = \
          h.get_format_date(h.get_julian()) + ' ' + \
                              h.get_hebrew_year_string()
  h.set_gdate(31, 12, year)
  substitutions_for_header[
      'PLACE_HOLDER_FOR_THE_JEWISH_END_OF_THE_CE_YEAR'] = \
          h.get_format_date(h.get_julian()) + ' ' + \
                              h.get_hebrew_year_string()
  header = Template(template_for_header).substitute(
                                  substitutions_for_header)
  print header

  h.set_gdate(1, 1, year)
  julian = h.get_julian()
  for i in range(0, 365):
    h.set_jd(julian)
    julian += 1
    day = h.get_gday()
    month = h.get_gmonth()
    holyday = { 'Israel' : None, 'diaspora' : None }
    parasha = { 'Israel' : None, 'diaspora' : None }
    h.set_israel
    holyday['Israel'] = h.get_holyday_string(0)
    parasha['Israel'] = h.get_parasha_string(0)
    h.set_diaspora
    holyday['diaspora'] = h.get_holyday_string(0)
    parasha['diaspora'] = h.get_parasha_string(0)
    if holyday['Israel']:
      if holyday['Israel'] == holyday['diaspora']:
        print "%02d/%02d*  %s" % (day, month, holyday['Israel'])
      else:
        print "%02d/%02d*  %s (Israel only)" % \
                                (day, month, holyday['Israel'])
    elif holyday['diaspora']:
      print "%02d/%02d*  %s (diaspora only)" % \
                                (day, month, holyday['diaspora'])
    if parasha['Israel']:
      if parasha['Israel'] == parasha['diaspora']:
      print "%02d/%02d*  Parshat %s" % \
                                (day, month, parasha['Israel'])
      else:
        print "%02d/%02d*  %s (Israel only)" % \
                                (day, month, parasha['Israel'])
    elif parasha['diaspora']  and  parasha['diaspora'] != 'none':
    # See http://bugs.debian.org/583092 why 'none' is required here.
      print "%02d/%02d*  Parshat %s (diaspora only)" % \
                                (day, month, parasha['diaspora'])

  print footer

  sys.exit()


if __name__ == "__main__":
  main()
else:
  # The following is useful from within an interactive Python
  # interpreter, where calendarJudaic.py is in the same `pwd`:
  #  >>> import calendarJudaic
  pass


                                          
_________________________________________________________________
גישה לדואר אלקטרוני ולשירותים נוספים גם בנסיעות. קבל את Windows Live Hotmail 
בחינם.
https://signup.live.com/signup.aspx?id=60969

--- End Message ---
--- Begin Message ---
Source: bsdmainutils
Source-Version: 8.0.12

We believe that the bug you reported is fixed in the latest version of
bsdmainutils, which is due to be installed in the Debian FTP archive:

bsdmainutils_8.0.12.dsc
  to main/b/bsdmainutils/bsdmainutils_8.0.12.dsc
bsdmainutils_8.0.12.tar.gz
  to main/b/bsdmainutils/bsdmainutils_8.0.12.tar.gz
bsdmainutils_8.0.12_i386.deb
  to main/b/bsdmainutils/bsdmainutils_8.0.12_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Meskes <[email protected]> (supplier of updated bsdmainutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 14 Jun 2010 16:35:41 +0200
Source: bsdmainutils
Binary: bsdmainutils
Architecture: source i386
Version: 8.0.12
Distribution: unstable
Urgency: low
Maintainer: Debian Bsdmainutils Team <[email protected]>
Changed-By: Michael Meskes <[email protected]>
Description: 
 bsdmainutils - collection of more utilities from FreeBSD
Closes: 582240 583629
Changes: 
 bsdmainutils (8.0.12) unstable; urgency=low
 .
   * Create /usr/share/calendar/calendar.judaic automatically for the
     current year. (Closes: #583629) - thanks to Ron Varburg <linux-
     [email protected]>
   * Added descriptions to all patches.
   * Do not move days when option '-S' is given. (Closes: #582240)
Checksums-Sha1: 
 7c13d2641f13c55d7f1e7c2be1d91fe78900eb67 1010 bsdmainutils_8.0.12.dsc
 40d084f2b715e3b61314ab9226393d8b25be1303 263252 bsdmainutils_8.0.12.tar.gz
 80587d945b8b441d962c106f7329fff0f7f35dba 198178 bsdmainutils_8.0.12_i386.deb
Checksums-Sha256: 
 54ed3c6b6c03c1f8bbe9833c2ea135bad578e78aecc0b586a581673381b3b218 1010 
bsdmainutils_8.0.12.dsc
 118f77ad10a95b51f042b7017fd0d70a6554bf027d37542238232dc32a5d162c 263252 
bsdmainutils_8.0.12.tar.gz
 db6c159e596d9f7d3204dde24ec70ccc9a658996b73644bf66309bbb24b4e596 198178 
bsdmainutils_8.0.12_i386.deb
Files: 
 17d20a7690ba6a8a11ce4080405e859c 1010 utils important bsdmainutils_8.0.12.dsc
 51863a12669b64c53b629edcb6885b1c 263252 utils important 
bsdmainutils_8.0.12.tar.gz
 3f360a3709c921de5783b5f2daeaea04 198178 utils important 
bsdmainutils_8.0.12_i386.deb

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

iD8DBQFMF5+8VkEm8inxm9ERAiOZAJ9KeTPnJ9mXFF3KGKzPs4sTndX6UgCfRGA9
25vaZqgKXBSXiVegqgY+i4c=
=WHxs
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to