mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-25 14:00:17 +00:00
* Extract prefixes field before extracting scripts so that
RPM_INSTALL_PREFIX gets set.
This commit is contained in:
@@ -78,18 +78,19 @@ sub scan {
|
|||||||
POSTUN => 'postrm',
|
POSTUN => 'postrm',
|
||||||
);
|
);
|
||||||
|
|
||||||
# These fields need no translation except case.
|
|
||||||
foreach (qw{name version release arch changelogtext summary
|
|
||||||
description copyright prefixes}) {
|
|
||||||
$fieldtrans{uc $_}=$_;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Use --queryformat to pull out all the fields we need.
|
# Use --queryformat to pull out all the fields we need.
|
||||||
foreach my $field (keys(%fieldtrans)) {
|
foreach my $field (qw{NAME VERSION RELEASE ARCH CHANGELOGTEXT
|
||||||
$_=$this->runpipe(0, "LANG=C rpm -qp --queryformat \%{$field} $file");
|
SUMMARY DESCRIPTION COPYRIGHT PREFIXES},
|
||||||
|
keys(%fieldtrans)) {
|
||||||
|
my $value=$this->runpipe(0, "LANG=C rpm -qp --queryformat \%{$field} $file");
|
||||||
|
if (exists $fieldtrans{$field}) {
|
||||||
$field=$fieldtrans{$field};
|
$field=$fieldtrans{$field};
|
||||||
$_='' if $_ eq '(none)';
|
}
|
||||||
$this->$field($_);
|
else {
|
||||||
|
$field=lc($field);
|
||||||
|
}
|
||||||
|
$value='' if $value eq '(none)';
|
||||||
|
$this->$field($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get the conffiles list.
|
# Get the conffiles list.
|
||||||
|
|||||||
7
debian/changelog
vendored
7
debian/changelog
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
alien (8.70) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* Extract prefixes field before extracting scripts so that
|
||||||
|
RPM_INSTALL_PREFIX gets set.
|
||||||
|
|
||||||
|
-- Joey Hess <joeyh@debian.org> Wed, 12 Mar 2008 11:04:06 -0400
|
||||||
|
|
||||||
alien (8.69) unstable; urgency=low
|
alien (8.69) unstable; urgency=low
|
||||||
|
|
||||||
* Alien's repository has moved from subversion to git.
|
* Alien's repository has moved from subversion to git.
|
||||||
|
|||||||
Reference in New Issue
Block a user