8 Commits
8.79 ... 8.80

Author SHA1 Message Date
Joey Hess
7e84fd2a26 releasing version 8.80 2010-04-18 15:46:21 -04:00
Joey Hess
55edc3f59a typo 2010-04-18 15:44:14 -04:00
Joey Hess
cc5ff87ef6 changelog 2010-04-18 15:27:56 -04:00
Joey Hess
e75140dc5f Fix empty field fix, to take into account that "0" is a false value
Instead, avoid populating fields with empty strings if rpm fails to
get a field value, either due to not knowing the field, or due to the
field not being set.
2010-04-18 15:27:03 -04:00
Alexey Khoroshilov
2f50988983 RPM Copyright tag has been deprecated in favour of License tag since rpm 4.0 2010-04-18 15:17:25 -04:00
Alexey Khoroshilov
6049930109 Fix if conditions in sanity checks: if a field was not found it is defined, but it is empty 2010-04-18 15:17:12 -04:00
Joey Hess
f581595af6 remove NOTES section 2009-12-14 13:42:59 -05:00
Joey Hess
72599080d2 reorder --scripts 2009-12-14 13:26:48 -05:00
3 changed files with 31 additions and 23 deletions

View File

@@ -76,13 +76,15 @@ sub scan {
POSTIN => 'postinst', POSTIN => 'postinst',
PREUN => 'prerm', PREUN => 'prerm',
POSTUN => 'postrm', POSTUN => 'postrm',
LICENSE => 'copyright',
); );
# Use --queryformat to pull out all the fields we need. # Use --queryformat to pull out all the fields we need.
foreach my $field (qw{NAME VERSION RELEASE ARCH CHANGELOGTEXT foreach my $field (qw{NAME VERSION RELEASE ARCH CHANGELOGTEXT
SUMMARY DESCRIPTION COPYRIGHT PREFIXES}, SUMMARY DESCRIPTION PREFIXES},
keys(%fieldtrans)) { keys(%fieldtrans)) {
my $value=$this->runpipe(0, "LANG=C rpm -qp --queryformat \%{$field} $file"); my $value=$this->runpipe(0, "LANG=C rpm -qp --queryformat \%{$field} $file");
next if $? || $value eq '(none)';
my $key; my $key;
if (exists $fieldtrans{$field}) { if (exists $fieldtrans{$field}) {
$key=$fieldtrans{$field}; $key=$fieldtrans{$field};
@@ -90,7 +92,6 @@ sub scan {
else { else {
$key=lc($field); $key=lc($field);
} }
$value='' if $value eq '(none)';
$this->$key($value); $this->$key($value);
} }
@@ -122,12 +123,18 @@ sub scan {
$this->summary('Converted RPM package'); $this->summary('Converted RPM package');
} }
} }
unless (defined $this->copyright) {
$this->copyright('unknown');
}
unless (defined $this->description) { unless (defined $this->description) {
$this->description($this->summary); $this->description($this->summary);
} }
unless (defined $this->copyright) {
# Older rpms have no licence tag, but have a copyright.
$this->copyright($this->runpipe(0, "LANG=C rpm -qp --queryformat \%{COPYRIGHT} $file"));
# Fallback.
if (! $this->copyright) {
$this->copyright('unknown');
}
}
if (! defined $this->release || ! defined $this->version || if (! defined $this->release || ! defined $this->version ||
! defined $this->name) { ! defined $this->name) {
die "Error querying rpm file"; die "Error querying rpm file";

View File

@@ -67,6 +67,9 @@ standard linux directory tree. Do NOT run B<alien> on tar files with source
code in them, unless you want this source code to be installed in your root code in them, unless you want this source code to be installed in your root
directory when you install the package! directory when you install the package!
When using B<alien> to convert a tgz package, all files in /etc in are assumed
to be configuration files.
=item pkg =item pkg
To manipulate packages in the Solaris pkg format (which is really the SV To manipulate packages in the Solaris pkg format (which is really the SV
@@ -127,6 +130,16 @@ Like B<-g>, but do not generate the packagename.orig directory. This is only
useful when you are very low on disk space and are generating a debian useful when you are very low on disk space and are generating a debian
package. package.
=item B<-c>, B<--scripts>
Try to convert the scripts that are meant to be run when the
package is installed and removed. Use this with caution, because these
scripts might be designed to work on a system unlike your own, and could
cause problems. It is recommended that you examine the scripts by hand
and check to see what they do before using this option.
This is enabled by default when converting from lsb packages.
=item B<--patch=>I<patch> =item B<--patch=>I<patch>
Specify the patch to be used instead of automatically looking the patch up Specify the patch to be used instead of automatically looking the patch up
@@ -156,16 +169,6 @@ information.
Note that without an argument, this displays the version of B<alien> instead. Note that without an argument, this displays the version of B<alien> instead.
=item B<-c>, B<--scripts>
Try to convert the scripts that are meant to be run when the
package is installed and removed. Use this with caution, because these
scripts might be designed to work on a system unlike your own, and could
cause problems. It is recommended that you examine the scripts by hand
and check to see what they do before using this option.
This is enabled by default when converting from lsb packages.
=item B<-T>, B<--test> =item B<-T>, B<--test>
Test the generated packages. Currently this is only supported for debian Test the generated packages. Currently this is only supported for debian
@@ -258,14 +261,6 @@ included in generated debian packages.
=back =back
=head1 NOTES
When using B<alien> to convert a tgz package, all files in /etc in are assumed
to be configuration files.
If B<alien> is not run as root, the files in the generated package will have
incorrect owners and permissions.
=head1 AUTHOR =head1 AUTHOR
B<alien> was written by Christoph Lameter, B<<clameter@debian.org>>. B<alien> was written by Christoph Lameter, B<<clameter@debian.org>>.

6
debian/changelog vendored
View File

@@ -1,3 +1,9 @@
alien (8.80) unstable; urgency=low
* Support querying rpm LICENSE field. (Alexey Khoroshilov)
-- Joey Hess <joeyh@debian.org> Sun, 18 Apr 2010 15:44:52 -0400
alien (8.79) unstable; urgency=low alien (8.79) unstable; urgency=low
* Typo. Closes: #554379 * Typo. Closes: #554379