Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix exception when removing a debian package (bsc#1216781) #8073

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,22 @@ ORDER BY UPPER(C.name)
</query>
</write-mode>

<write-mode name="cleanup_package_predepends">
<query params="pid">
DELETE from
rhnPackagePreDepends
where package_id = :pid
</query>
</write-mode>

<write-mode name="cleanup_package_breaks">
<query params="pid">
DELETE from
rhnPackageBreaks
where package_id = :pid
</query>
</write-mode>

<write-mode name="cleanup_package_caps">
<query params="pid">
DELETE FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import javax.persistence.Table;

/**
* PackagePreDepends
* PackageBreaks
*/
@Entity
@Table(name = "rhnPackageBreaks")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import javax.persistence.Table;

/**
* PackagePreDepends
* PackageSupplements
*/
@Entity
@Table(name = "rhnPackageSupplements")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public class PackageManager extends BaseManager {

private static final String[]
CLEANUP_QUERIES = {"requires", "provides", "conflicts", "obsoletes",
"recommends", "suggests", "supplements", "enhances",
"recommends", "suggests", "supplements", "enhances", "predepends", "breaks",
"channels", "files", "caps", "changelogs"};

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- fix exception when removing a debian package (bsc#1216781)