Esempio n. 1
0
    def slotSelectPackages(self):
        """
            "Packages..." menu item fires this function.
        """
        if not self.repo:
            if not self.checkProject():
                return
            if not self.updateRepo():
                return

        dialog = PackagesDialog(self, self.repo, self.project.selected_packages, self.project.selected_components)

        if dialog.exec_():
            self.project.selected_packages = dialog.packages
            self.project.selected_components = dialog.components
            self.project.all_packages = dialog.all_packages
Esempio n. 2
0
    def slotSelectPackages(self):
        """
            "Packages..." menu item fires this function.
        """
        if not self.repo:
            if not self.checkProject():
                return
            if not self.updateRepo():
                return

        dialog = PackagesDialog(self, self.repo,
                                self.project.selected_packages,
                                self.project.selected_components)

        if dialog.exec_():
            self.project.selected_packages = dialog.packages
            self.project.selected_components = dialog.components
            self.project.all_packages = dialog.all_packages
Esempio n. 3
0
    def slotSelectPackages(self):
        if self.tmpCollection.packages.selectedPackages and self.tmpCollection.packages.selectedComponents:
            dialog = PackagesDialog(self,
                                    self.repo,
                                    self.tmpCollection.packages.selectedPackages,
                                    self.tmpCollection.packages.selectedComponents)

            if dialog.exec_():
                self.tmpCollection.packages = PackageSet(self.repo_uri,\
                                                         dialog.components,\
                                                         dialog.packages,\
                                                         dialog.all_packages)

        else:
            dialog = PackagesDialog(self, self.repo)
            if dialog.exec_():
                self.tmpCollection.packages = PackageSet(self.repo_uri,\
                                                         dialog.components,\
                                                         dialog.packages,\
                                                         dialog.all_packages)
Esempio n. 4
0
    def slotSelectPackages(self):
        if self.collection:
            print "buraya geldi...."
            if self.collection.packageSelection.selectedPackages and self.collection.packageSelection.selectedComponents:
                dialog = PackagesDialog(self, self.repo, self.collection.packageSelection.selectedPackages, self.collection.packageSelection.selectedComponents)
                if dialog.exec_():
                    self.collection.packageSelection = PackageSelection(self.repoURI, dialog.components, dialog.packages, dialog.all_packages)

            else:
                dialog = PackagesDialog(self, self.repo)
                if dialog.exec_():
                    self.tmpCollection.packageSelection = PackageSelection(self.repoURI, dialog.components, dialog.packages, dialog.all_packages)
                    self.tmpPackageSelection = PackageSelection(self.repoURI, dialog.components, dialog.packages, dialog.all_packages)
        else:
            dialog = PackagesDialog(self, self.repo)
            if dialog.exec_():
                self.tmpCollection.packageSelection = PackageSelection(self.repoURI, dialog.components, dialog.packages, dialog.all_packages)
                self.tmpPackageSelection = PackageSelection(self.repoURI, dialog.components, dialog.packages, dialog.all_packages)
Esempio n. 5
0
    def slotSelectPackages(self):
        if self.tmpCollection.packages.selectedPackages and self.tmpCollection.packages.selectedComponents:
            dialog = PackagesDialog(
                self, self.repo, self.tmpCollection.packages.selectedPackages,
                self.tmpCollection.packages.selectedComponents)

            if dialog.exec_():
                self.tmpCollection.packages = PackageSet(self.repo_uri,\
                                                         dialog.components,\
                                                         dialog.packages,\
                                                         dialog.all_packages)

        else:
            dialog = PackagesDialog(self, self.repo)
            if dialog.exec_():
                self.tmpCollection.packages = PackageSet(self.repo_uri,\
                                                         dialog.components,\
                                                         dialog.packages,\
                                                         dialog.all_packages)