return q;
}
- const char *str() {
- return pool_job2str($self->pool, $self->how, $self->what, 0);
- }
-
bool __eq__(Job *j) {
return $self->pool == j->pool && $self->how == j->how && $self->what == j->what;
}
bool __ne__(Job *j) {
return !Job___eq__($self, j);
}
+#if defined(SWIGPERL)
+ %rename("str") __str__;
+#endif
const char *__str__() {
return pool_job2str($self->pool, $self->how, $self->what, 0);
}
%rename("to_s") __str__;
%rename("inspect") __repr__;
#endif
+#if defined(SWIGPERL)
+ %rename("str") __str__;
+#endif
%newobject __str__;
const char *__str__() {
const char *str;
bool __ne__(Repo *repo) {
return $self != repo;
}
+#if defined(SWIGPERL)
+ %rename("str") __str__;
+#endif
%newobject __str__;
const char *__str__() {
char buf[20];
bool __ne__(Dep *s) {
return !Dep___eq__($self, s);
}
+#if defined(SWIGPERL)
+ %rename("str") __str__;
+#endif
const char *__str__() {
return pool_dep2str($self->pool, $self->id);
}
bool __ne__(XSolvable *s) {
return !XSolvable___eq__($self, s);
}
+#if defined(SWIGPERL)
+ %rename("str") __str__;
+#endif
const char *__str__() {
return pool_solvid2str($self->pool, $self->id);
}
return undef if sysread($f, $fextcookie, 32) != 32;
}
sysseek($f, 0, Fcntl::SEEK_SET);
- $f = solv::xfopen_dup(undef, fileno($f));
+ my $fd = solv::xfopen_dup(undef, fileno($f));
my $flags = $ext ? $solv::Repo::REPO_USE_LOADING|$solv::Repo::REPO_EXTEND_SOLVABLES : 0;
$flags |= $solv::Repo::REPO_LOCALPOOL if $ext && $ext ne 'DL';
- if (!$self->{'handle'}->add_solv($f, $flags)) {
- solv::xfclose($f);
+ if (!$self->{'handle'}->add_solv($fd, $flags)) {
+ solv::xfclose($fd);
return undef;
}
- solv::xfclose($f);
+ solv::xfclose($fd);
$self->{'cookie'} = $fcookie unless $ext;
$self->{'extcookie'} = $fextcookie if $fextcookie;
utime undef, undef, $f if $mark;