Home Home > GIT Browse > scripts
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2018-11-05 11:30:48 +0100
committerMichal Suchanek <msuchanek@suse.de>2018-11-05 11:30:48 +0100
commit5c7772ab45f67cb35d6a58be2e43c48d4b928bc8 (patch)
tree67e65ac3f4698e8c7b1a55a7ceb71a4793361a55
parent0d0454aa50d673cc1744cf411a27f6660905e875 (diff)
parentcd4eb98f1fb8c6e228b6b3704cab8d08267f9fba (diff)
Merge branch 'users/jslaby/scripts/for-next' of kerncvs.suse.de:/srv/git/kernel-source into scripts
-rw-r--r--scripts/lib/SUSE/MyBS.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/lib/SUSE/MyBS.pm b/scripts/lib/SUSE/MyBS.pm
index 654c788ae1..da42f3d9c7 100644
--- a/scripts/lib/SUSE/MyBS.pm
+++ b/scripts/lib/SUSE/MyBS.pm
@@ -26,7 +26,16 @@ sub new {
}
$self->{url} = URI->new($api_url);
- my $cfgfile = "$ENV{HOME}/.oscrc";
+ my $cfgfile;
+ foreach ("$ENV{HOME}/.oscrc", "$ENV{HOME}/.config/osc/oscrc") {
+ if (-f) {
+ $cfgfile = $_;
+ last;
+ }
+ }
+
+ defined $cfgfile or die "oscrc not found";
+
# replace name: value with name= value that Config::IniFiles can parse
open(my $fh, '<', $cfgfile) or die "$cfgfile: $!\n";
my $data = "";