[Bug 1173703] [NEW] Feature Request: --noedit and --date switches

tombert 1173703 at bugs.launchpad.net
Sat Apr 27 18:06:18 UTC 2013


Public bug reported:

Hope this is a good place to put ...

Whats the problem?  I need to create a changelog file from a git history
via bash script. Therefore I added two changes into the perl debchange
script which I would like to propose as a permanent improvement.

Line 900, instead of simply getting the system date, allow to provide a
date opt_date via command line:

...
my $DATE = undef;
if ($opt_date) {
    # parse time string and re-format, same as -R
    my $time = str2time($opt_date, $opt_tz);
    $DATE = time2str("%a, %e %b %Y %T %z", $time);
} else {
    # Get the date
    my $date_cmd = ($opt_tz ? "TZ=$opt_tz " : "") . "date -R";
    chomp($DATE=`$date_cmd`);
}
...

Line 1473, really skip the editor to allow batch processing by a new
option opt_noedit:

# Now Run the Editor; always run if doing "closes" to give a chance to check
# @changed: for batch processing allow to skip editing
...
if (!$opt_noedit and ((!$TEXT and !$EMPTY_TEXT and ! ($opt_create and $opt_empty)) or @closes_text or
    ($opt_create and ! ($PACKAGE ne 'PACKAGE' and $VERSION ne 'VERSION')))) {
...


I do have the rare impression that this here might not be the right place ... but I could not find a better one. Feel free to advice me to do better.
thx

** Affects: alien (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to alien in Ubuntu.
https://bugs.launchpad.net/bugs/1173703

Title:
  Feature Request: --noedit and --date switches

Status in “alien” package in Ubuntu:
  New

Bug description:
  Hope this is a good place to put ...

  Whats the problem?  I need to create a changelog file from a git
  history via bash script. Therefore I added two changes into the perl
  debchange script which I would like to propose as a permanent
  improvement.

  Line 900, instead of simply getting the system date, allow to provide
  a date opt_date via command line:

  ...
  my $DATE = undef;
  if ($opt_date) {
      # parse time string and re-format, same as -R
      my $time = str2time($opt_date, $opt_tz);
      $DATE = time2str("%a, %e %b %Y %T %z", $time);
  } else {
      # Get the date
      my $date_cmd = ($opt_tz ? "TZ=$opt_tz " : "") . "date -R";
      chomp($DATE=`$date_cmd`);
  }
  ...

  Line 1473, really skip the editor to allow batch processing by a new
  option opt_noedit:

  # Now Run the Editor; always run if doing "closes" to give a chance to check
  # @changed: for batch processing allow to skip editing
  ...
  if (!$opt_noedit and ((!$TEXT and !$EMPTY_TEXT and ! ($opt_create and $opt_empty)) or @closes_text or
      ($opt_create and ! ($PACKAGE ne 'PACKAGE' and $VERSION ne 'VERSION')))) {
  ...

  
  I do have the rare impression that this here might not be the right place ... but I could not find a better one. Feel free to advice me to do better.
  thx

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alien/+bug/1173703/+subscriptions




More information about the foundations-bugs mailing list