Skip to content

Commit

Permalink
fix moar refs.
Browse files Browse the repository at this point in the history
  • Loading branch information
examachine committed Feb 23, 2017
1 parent 924f179 commit f8a6aa3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pisi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def info(package, installed = False):
return info_name(package, installed)

def info_file(package_fn):
from package import Package
from data.package import Package

if not os.path.exists(package_fn):
raise Error (_('File %s not found') % package_fn)
Expand Down
2 changes: 1 addition & 1 deletion pisi/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ def run(self):
self.help()
return

index = pisi.index.Index()
index = pisi.data.index.Index()
index.distribution = None

for arg in self.args:
Expand Down
10 changes: 5 additions & 5 deletions pisi/db/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def has_package(self, name, repo=None, txn = None):
def get_package(self, name, repo=None, txn = None):
try:
return self.d.get_item(name, repo, txn=txn)
except pisi.db.itembyrepo.NotfoundError, e:
except itembyrepo.NotfoundError, e:
raise Error(_('Package %s not found') % name)

def get_package_repo(self, name, repo=None, txn = None):
Expand Down Expand Up @@ -151,10 +151,10 @@ def proc(txn):

def remove_tracking_package(name, txn = None):
# remove the guy from the tracking databases
if pkgdb.has_package(name, itembyrepodb.installed, txn=txn):
pkgdb.remove_package(name, itembyrepodb.installed, txn=txn)
if pkgdb.has_package(name, itembyrepodb.thirdparty, txn=txn):
pkgdb.remove_package(name, itembyrepodb.thirdparty, txn=txn)
if pkgdb.has_package(name, itembyrepo.installed, txn=txn):
pkgdb.remove_package(name, itembyrepo.installed, txn=txn)
if pkgdb.has_package(name, itembyrepo.thirdparty, txn=txn):
pkgdb.remove_package(name, itembyrepo.thirdparty, txn=txn)

def init_db():
global pkgdb
Expand Down
2 changes: 1 addition & 1 deletion pisi/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def install(packages, reinstall = False):

def install_pkg_files(package_URIs):
"""install a number of pisi package files"""
from package import Package
from data.package import Package

ctx.ui.debug('A = %s' % str(package_URIs))

Expand Down

0 comments on commit f8a6aa3

Please sign in to comment.